Commit graph

4 commits

Author SHA1 Message Date
Eddie Hebert
63063b1ebe DEV: Fixes typo in git stash message comparison. 2013-04-01 12:05:40 -04:00
Eddie Hebert
c6f8f430d7 DEV: Handles empty stash case in pre-commit hook.
Handles the case when reword is called and the `commit --amend` invokes
the pre-commit hook, when there is no stash the `git stash pop -q`
in that case leaves the rebase in an odd state.
Fixes by only calling the stash pop if changes were saved.
2013-03-29 17:06:37 -04:00
Eddie Hebert
060b565cdc DEV: Adds stashing to pre-commit hook.
So that the code that is linted/tested is only the staged commits.
Useful when editing by only staging parts of files via git.
2013-03-20 11:00:38 -04:00
Eddie Hebert
f054835cd1 DEV: Provides an example pre-commit hook.
This pre-commit hook can be activated by copying or symlinking to
the .git/hooks directory

This particular commit hook is best suited for git versions < 1.8.2
The running of nosetests would be better suited for a push hook,
but those are not added until 1.8.2.
2013-03-19 23:33:36 -04:00