regression: add tests for guilt-header
[guilt/mob.git] / guilt-diff
blobd740c705a0f75adc70d667c9dd31963e4d76b4b5
1 #!/bin/sh
3 # Copyright (C) 2007 Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
6 USAGE="[-z]"
7 . `dirname $0`/guilt
9 while [ $# -ne 0 ]; do
10 case "$1" in
11 -z)
12 working_tree=t ;;
14 usage ;;
15 esac
16 shift
17 done
19 if [ ! -z "$working_tree" ] ; then
20 git diff
21 else
22 git diff HEAD^