-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from cksource/t/73
Feature: Introduced a set of new commands which should help developers in daily tasks. Closes #73. * New commands: * `commit` - allows committing all changes files that are tracked by Git (a shorthand for `mgit exec 'git commit -a'`) * `fetch` - allows fetching changes in all cloned repositories (a shorthand for `mgit exec 'git fetch'`) * `pull` - allows pulling changes in all cloned repositories and cloning missing ones (it does not check out to specified branch in `mgit.json` file) * `push` - allows pushing changes in all cloned repositories (a shorthand for `mgit 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 to `sync`. * The `save-hashes` command was renamed to `save`. It accepts two options: `--branch` or `--hash` (which is default one). If specified `--branch`, name of current branches will be saved in `mgit.json`. * Removed command `bootstrap`. Use the `sync` 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 in `mgit.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. Calling `mgit 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 CHANGE: Removed the `bootstrap` command. The `sync` command should be used instead for initializing the repositories. BREAKING CHANGE: Renamed `update` command to `sync`. BREAKING CHANGE: Renamed `save-hashes` command to `save`. 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 from `mgit.json`.
- Loading branch information
Showing
44 changed files
with
3,894 additions
and
1,250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.