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
guilt: try to be more portable
[guilt/mob.git]
/
guilt-refresh
blob
c29ceaad965c4021219343b5c67d5d8284bf441d
1
#!/bin/sh
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
USAGE
=
"[--git] [--diffstat]"
7
.
`dirname
$0
`
/
guilt
8
9
while
[
$#
-gt
0
];
do
10
case
"
$1
"
in
11
--git
)
12
gdiff
=
t
;;
13
--diffstat
)
14
dstat
=
t
;;
15
*)
16
usage
;;
17
esac
18
shift
19
done
20
21
TOP
=
`get_top`
22
23
if
[
-z
"
$TOP
"
];
then
24
die
"No patches applied; try guilt-push first"
25
fi
26
27
refresh_patch
"
$TOP
"
"
$gdiff
"
"
$dstat
"
28