Last active
August 28, 2016 15:00
-
-
Save blindsey/5490931 to your computer and use it in GitHub Desktop.
git post-commit to take a photo every time you commit
This file contains 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
#!/bin/bash | |
EXEC=/usr/local/bin/imagesnap | |
if [ -x $EXEC ]; then | |
FILE="$HOME/gitshots/`date +%s`.jpg" | |
echo "Taking capture into $FILE" | |
$EXEC -q -w 3 $FILE | |
fi | |
exit 0 |
Author
blindsey
commented
Apr 30, 2013
- brew install imagesnap
- mkdir $HOME/gitshots
- copy this script to .git/hooks/post-commit and make it executable
- make a movie: http://www.dayofthenewdan.com/projects/tlassemble
- profit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment