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
{diff,import-commit,new}: fix handling of binary files
[guilt/mob.git]
/
guilt-diff
blob
bbb6089023712b24670a2184c088526d2610b81e
1
#!/bin/sh
2
#
3
# Copyright (C) 2007 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4
#
5
6
USAGE
=
"[-z] [<path>...]"
7
.
`dirname
$0
`
/
guilt
8
9
while
[
$#
-ne
0
];
do
10
case
"
$1
"
in
11
-z
)
12
working_tree
=
t
;;
13
-*
|
--
*)
14
usage
;;
15
16
*)
17
break
;;
18
esac
19
shift
20
done
21
22
PREV
=
HEAD^
23
[
-z
"`get_top`"
] &&
PREV
=
24
[ !
-z
"
$working_tree
"
] &&
PREV
=
25
26
git
diff
--binary
$PREV
--
"$@"