repo.or.cz
/
guilt
/
mob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regression: add tests for guilt-header
[guilt/mob.git]
/
guilt-diff
blob
d740c705a0f75adc70d667c9dd31963e4d76b4b5
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