committer is a Python tool that provides a simplified command-line interface to the version control systems git, mercurial, and subversion.
Usage
- 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:
st
This will execute the "status" command known by all version control systems.
Update:
update
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
Help
commit help
The help argument works on all commands.
Version Information
update --version
Displays the committer version information. Works on all commands.
Installation
Using pip
sudo pip install committer
or
sudo pip install https://github.com/downloads/aelgru/committer/committer-0.0.58.tar.gz
Using easy_install
easy_install https://github.com/downloads/aelgru/committer/committer-0.0.58.tar.gz
Micro Commits
Committing in a high frequency has advantages:
- prevents merging,
- makes code reviews easier, and
- commit messages for smaller commits "tell a story".
Alternatives
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)
Requirements:
- Python
Comments not found