Created
June 21, 2013 08:58
-
-
Save Sitebase/5829876 to your computer and use it in GitHub Desktop.
Pre-commit hook for Git to take a webcam shot every time you commit something.
This file contains hidden or 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
HOOKSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
TIMESTAMP=$(date +"%Y%m%d%H%M") | |
COMMITID=$(git rev-parse HEAD) | |
PROJECT=$($test | awk -F/ '{print $(NF-1)}') # this doesn't work yet | |
imagesnap -q -w 1 ~/.gitshots/$TIMESTAMP-$COMMITID.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment