fix other mandelbrot variants
[mu.git] / archive / 1.vm / snapshot_lesson
blobcd4723c1555c73e44d5ce378e706529131614f47
1 #!/bin/sh
2 # Hacky little helper called from edit/ and sandbox/ apps to save a snapshot
3 # of lesson/ using git.
4 set -e
6 test -d lesson/.git || exit 0 # give up if it's not a git repo
8 cd lesson
9 # explicitly say '--all' for git 1.9
10 git add --all .
11 # bug in git: git diff -q messes up --exit-code
12 git diff HEAD --exit-code >/dev/null || git commit -a -m . >/dev/null