committer is a Python tool that provides a simplified command-line interface to the version control systems git, mercurial, and subversion.
- commit - commit all changes
- st - status: show all changes
- update - update the current directory
Commit all changes:
commit "Extracted interface."
Example: performing commit on a git repository will:
- check if the git command is executable, by executing git --version
- execute git pull
- execute git commit -a -m "Extracted interface."
- execute git push
Increment the version before committing:
commit "Added new feature" ++
The second argument "++" tells the script to increment the version within build.py
Show all changes:
This will execute the "status" command known by all version control systems.
Example: performing update on a mercurial repository will:
- check if the hg command is executable, by executing: hg --version --quiet
- execute hg pull
- execute hg up
The help argument works on all commands.
Displays the committer version information. Works on all commands.
sudo pip install committer
sudo pip install https://github.com/downloads/aelgru/committer/committer-0.0.58.tar.gz
Committing in a high frequency has advantages:
- prevents merging,
- makes code reviews easier, and
- commit messages for smaller commits "tell a story".
If you do not like the workflow committer implies, maybe you are interested in hg-git or git-svn.
(Thanks to Steve Klabnik for the hint)