GitmeTime
GitmeTime is an hook for git that logs each commit on the Basecamp timeline.
Once installed and configured for your project, gitme_time will create an entry in your basecamp timeline for each commit you do.
The message of the commit will be in the format <commit.message> (<commit.branch> : <commit.sha>)
with an empty duration.
If you specify a number between square brackets in your commit message, it will be used as time entry duration. e.g.:
git commit -am "small refactoring [2]" # => entry with description "small refactoring" and duration of 2 hours
Installation
gem install gitme_time
Configuration
First of all, you need to setup your basecamp credentials:
git config --global --add basecamp.username <username>
git config --global --add basecamp.password <password>
Then, inside your project, launch gitme_time init to configure your project:
cd /path/to/git/project
gitme_time init
As a final step, add a hook to your git repository:
cd /path/to/git/project
ln -sf `which gitme_time` ./.git/hooks/post-commit
TODO
- Specs!
Get ready to contribute!
- Fork this repo
- Run 'bundle install --binstubs=bin/stubs' from the repo
- Run the specs with either 'thor spec' or 'guard'