Take photo every time you commit then make a film
- git
- imagesnap
- ffmpeg
Following steps assume that you have no local post-commit hooks. If you have - use your brain.
brew install imagesnap
git clone
- switch to cloned directory
cp -r .git-templates ~/.git-templates && cp -r .git-post-commit-scripts ~/.git-post-commit-scripts
- tell git where to find templates
git config --global init.templatedir '~/.git-templates'
- update your existing repos with
git init
- if
.git/post-commit
already exists in projectgit init
will not update it - you will need to
rm
the file and rerun or merge it manually.
- if
- commits will now put a photo in
~/.gitshots
directory and append activity tolog.txt
- requires
ffmpeg
- run
bin/make-film
will outputfilm_${timestamp}.mp4
to~/.gitshots