Releases: cksource/mrgit
v2.1.0
Features
-
Added support for executing commands in the root repository. Closes #160. (commit)
Add the
$rootRepository
option to themrgit.json
configuration file to enable this feature. Its value should be a repository GitHub identifier (the same as defining thedependencies
values). You can also define the option within the preset feature.Below, you can find a list of supported commands that take into consideration the root repository if specified:
checkout
commit
diff
exec
fetch
pull
push
status
sync
To disable executing a command in the root repository without modifying the configuration file, you can add the
--skip-root
modifier to mrgit. Example:mrgit status --skip-root
.
v2.0.3
v2.0.2
v2.0.1
v2.0.0
BREAKING CHANGES
- A minimal version of
Node.js
has been increased to14
and fornpm
to5.7.1
.
Features
Bug fixes
- Fixed message displayed by the
status
command when using a specific commit defined in the config file. (commit)
Other changes
v1.0.0
v0.11.1
v0.11.0
Features
-
Allows cloning packages using the
file://
protocol. Closes #101. (d0aa893)Thanks to @neumann-d!
-
Introduced the
overrideDirectoryNames
option inmgit.json
. Closes #98.
Bug fixes
v0.10.1
v0.10.0
Features
-
Introduced a set of new commands which should help developers in daily tasks. Closes #73. (2097c16)
-
New commands:
commit
- allows committing all changes files that are tracked by Git (a shorthand formgit exec 'git commit -a'
)fetch
- allows fetching changes in all cloned repositories (a shorthand formgit exec 'git fetch'
)pull
- allows pulling changes in all cloned repositories and cloning missing ones (it does not check out to specified branch inmgit.json
file)push
- allows pushing changes in all cloned repositories (a shorthand formgit exec 'git push'
)close
- allows mering specified branch into current one and removes the merged branch from the local and remote
-
The
update
command was renamed tosync
. -
The
save-hashes
command was renamed tosave
. It accepts two options:--branch
or--hash
(which is default one). If specified--branch
, name of current branches will be saved inmgit.json
. -
Removed command
bootstrap
. Use thesync
command instead. Sync command will scan the package directories and compare results with packages saved in configuration file. If there is something that is not defined inmgit.json
, it will be printed out. -
checkout
command now allows checking out the project to specified branch:mgit checkout stable
will check out all repositories to#stable
branch. It can also create a new branch for repositories that contains changes in files tracked by git. Callingmgit checkout -- --branch develop
will create the#develop
branch in these repositories. -
Improved the help screen of mgit and introduced a help screen for specified command, e.g.:
mgit sync --help
.
-
BREAKING CHANGES
- Removed the
bootstrap
command. Thesync
command should be used instead for initializing the repositories. - Renamed
update
command tosync
. - Renamed
save-hashes
command tosave
. It supports two parameters:--branch
and--hash
which the second one is set as default.
NOTE
mgit checkout branch
will check out the repository on#branch
.[branch]
argument is optional. If it isn't specified, branch name will be taken frommgit.json
.