about summary refs log tree commit diff stats
path: root/apps/ex14
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ex14')
0 files changed, 0 insertions, 0 deletions
rtik/mu/blame/snapshot_lesson?h=main&id=465229a22a68f9c5cb94ba7853c44328f1bf85c1'>^
1
2
3
4
5
6
7
8
9
10
11
12


                                                                            
      







                                                                     
#!/bin/sh
# Hacky little helper called from edit/ and sandbox/ apps to save a snapshot
# of lesson/ using git.
set -e

test -d lesson/.git || exit 0  # give up if it's not a git repo

cd lesson
# explicitly say '--all' for git 1.9
git add --all .
# bug in git: git diff -q messes up --exit-code
git diff HEAD --exit-code >/dev/null || git commit -a -m . >/dev/null