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
[PATCH] Fix guilt to work correctly even if the refs are packed
[guilt.git]
/
guilt-refresh
blob
d75fac901f40ad3859d6c6a729637f9e7442cd87
1
#!/bin/sh
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
USAGE
=
"[--git]"
7
.
`dirname
$0
`
/
guilt
8
9
case
$#
in
10
0
)
11
;;
12
1
)
13
[
"
$1
"
!=
"--git"
] &&
usage
14
gdiff
=
t
15
;;
16
esac
17
18
TOP
=
`get_top`
19
20
if
[
-z
"
$TOP
"
];
then
21
die
"No patches applied; try guilt-push first"
22
fi
23
24
refresh_patch
"
$TOP
"
"
$gdiff
"
25