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
guilt: Document push_patch's new argument
[guilt.git]
/
guilt-applied
blob
97a032cc02fe9a4821d7fb4255d864050c8b4d0e
1
#!/bin/bash
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
source
"`dirname
$0
`/guilt"
7
8
USAGE
=
"
$USAGE
[-c]"
9
10
case
$#
in
11
0
)
12
# just output the regular series-style applied list
13
cat
$applied
| cut
-d
:
-f
2
-
14
;;
15
16
1
)
17
if
[
"
$1
"
!=
"-c"
];
then
18
print_usage
19
exit
1
20
fi
21
22
cat
$applied
|
sed
-e
's/:/ /'
23
;;
24
25
*)
26
print_usage
27
exit
1
28
;;
29
esac