repo.or.cz
/
guilt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
header: fix patch name existence in the series
[guilt.git]
/
guilt-diff
blob
85e5fcb0be839565cda99ce0e27a7cef71b7ccca
1
#!/bin/sh
2
#
3
# Copyright (C) 2007 Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
4
#
5
6
USAGE
=
"[-z]"
7
.
`dirname
$0
`
/
guilt
8
9
while
[
$#
-ne
0
];
do
10
case
"
$1
"
in
11
-z
)
12
working_tree
=
t
;;
13
*)
14
usage
;;
15
esac
16
shift
17
done
18
19
if
[ !
-z
"
$working_tree
"
] ;
then
20
git-diff
21
else
22
git-diff HEAD^
23
fi