Last active
August 29, 2015 14:22
-
-
Save andreruffert/6265a6da54342ca87593 to your computer and use it in GitHub Desktop.
.gitshots - take a selfie every time u commit
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
#!/bin/sh | |
# Run `chmod +x pre-commit` to make it executable then put it into .git/hooks/. | |
## | |
# gitshots | |
# | |
# Requires imagesnap from https://github.com/alexwilliamsca/imagesnap (brew install imagesnap) | |
# Create a .gitshots directory at the same level as the .git directory. | |
# To assemble the video use http://www.dayofthenewdan.com/projects/tlassemble | |
## | |
FILE=$(dirname $0)/../../.gitshots/$(date "+%s").jpg | |
echo "Taking capture into" $FILE | |
/usr/local/bin/imagesnap -q -w 3 $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment