Changes that may have an impact on backwards compatibility (i.e. they may break existing workflows) are marked with [BC]
.
- Prevent E_WARN errors in build
- Add
exclude_tvs
option to thecontent
data type to allow excluding certain TVs - Add
credential_file
option to providers to contain theusername
andapi_key
(#155) - Fix GITIFY_WORKING_DIR constant on windows (#149)
- Fix E_STRICT error in loadConfig (#136)
- Fix file path comparisons to work properly across unix and windows (#99)
- Cache MODX packages so it doesn't have to download every time (#133)
- Change the way Git.php dependency is loaded and version number is managed (#135)
- Fix stupid bug in Gitify->getEnvironment causing www to not get stripped off properly
- Allow setting the path to a git binary in a
gitify.git_path
setting - Add optional
--overwrite
flag to backup to overwrite a named backup file - Fix broken error message in backup command if file already exists
- Make sure
modTemplateVar
is set before content in the gitify file (#88) - Add
modTemplateVarResource
to defaulttruncate_on_force
for content to make sure the DB is cleaned properly on force (#111) - Store installed packages with the full signature instead of just the package name (#110)
- Add
modx:upgrade
command to download a newer version and to run the upgrade (#116) - Prevent
PHP Warning: mkdir(): File exists
errors during init if backup and data folders already exist (#128) - Output result from command line install during
modx:install
(#127) - Fix unzip in
modx:install
on certain systems (#126) - Added support to get the git repository and environment specific options
- Added symfony2/process and git.php dependencies
- Implement/improve support for
where
attributes on content and other objects
- Implement automatic ID Conflict resolution during build, which will fix duplicate ID errors automatically. (#86, related to #69, #53)
- [BC] Implement orphan handling during build, which removes any object that no longer exists in file automatically.
- Add
no-cleanup
flag to build to allow bypassing the orphan handling. - Fix several issues using Gitify on Windows: \ - Due to inconsistent directory separators, certain files would be removed on extract. \ - Ensure line endings are normalized (LF \n) to prevent issues reading files/parsing yaml
Gitify backup
andGitify restore
now also pass the host to the command, so should now work with non-localhost databases (#80, #82)- Extend
Gitify init
with more recommended options to include in the data, and automatically listing installed packages (#41) - Improved formatting of command output somewhat in several commands
- [BC] Rename
Gitify install:package
toGitify package:install
, andGitify install:modx
toGitify modx:install
. Aliases are in place so they will continue to work for now, but those will be removed in v1. - Extract instantiation logic out of Gitify file into application.php for easier integration with non-CLI PHP.
- Small speed optimization (~ 10%) to
Gitify build --force
(#78) - Passing arguments to
Gitify build
andGitify extract
now restricts building/extracting to those specific data partitions/folders (#51, #26) - Escape password in backup/restore commands so they work with special characters in the password
- Add new
Gitify backup
andGitify restore
commands (#39) - Fix issue with installing packages where it proceeds to install FormIt2db if FormIt is already installed (same with MIGX)
- Make sure installing packages works properly when the package name isn't the same as the signature (#74)
- Fix silly
<note>
in output from install:modx - Add new
truncate_on_force
option that accepts an array of class names that need to be truncated before building (#73) - see the wiki - Show a helpful warning if the user forgot to run composer install (#67)
- With install:package, prefer exact matches over provider order to ensure the right packages are installed (#58)
- Add new --interactive (-i) flag to
install:package --all
command to interactively install all packages defined in .gitify file - Fix issue where composite primary keys have the default value (e.g. sources.odMediaSourceElement) and it can't build those objects (#65)
- Fix issue with modCategory objects and force building (#66)
- Make sure TVs are inserted into the resource file alphabetically (#54)
- Fix duplicate paths in file name if alias contains a folder structure
- Fix issue where in some cases, if the content was empty any field that can be compared to empty is removed from the file
- Add package support with
install:package [packagename]
andinstall:package --all
based off the .gitify file (#3) - Apply the --force flag to all content types (#47)
- Fix install:modx command being called in Gitify init (#42)
- Don't exclude
createdby
/createdon
keys from resources by default; could result in lost data onbuild --force
- Add time and memory usage statistics (#34)
- Fix PHP warning: Illegal offset type when using composite primary keys (#36)
- Fix issue where resources in different contexts don't get built because of conflicting URIs (#35)
- Make sure cases where saving a resource/object fails get logged to the terminal
[BC]
Fixbuild
issue with ContentBlocks (and probably other extras) caused by automatically expanding JSON- Improve information provided during
build
andextract
, including more verbose logging with-v
or--verbose
flag - Fix undefined method issue in
build
command - Catch YAML parse exceptions so it doesn't kill the entire process on an invalid file
- Prevent Gitify from trying to build dotfiles
- Ensure file path transliteration/filters also works pre MODX 2.3
- Simplify the number of options that are added by default to all commands.
- Add ability to specify the MODX version to download/install in
Gitify install:modx [modx_version]
- Add support for TVs on resources, automatically added on extract.
- Add ability to read composite primary keys, when
primary
is set to an array in the.gitify
data object. (thanks @ahaller) - Skip modStaticResource in the content extraction to prevent issues with binary file content (thanks @ahaller)
[BC]
Apply transliteration and other filters to file names to ensure the names are safe to be used.
- Refactor based on Symfony's Console component and Composer
[BC]
Slight change in the content separator (an extra\n
) so there is now an empty line before and after the 5 dashes.
- Early alpha, first prototype presented at the MODX Weekend