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: Working around missing touch -d on Darwin.
[guilt/mob.git]
/
guilt-refresh
blob
e866f801f6c5f545b9311a81b4be04ee9e81415f
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
echo
"Patch
$TOP
refreshed"