header: fix patch name existence in the series
[guilt.git] / guilt-diff
blob85e5fcb0be839565cda99ce0e27a7cef71b7ccca
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^