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] Guilt: Replace print_usage and exit 1 with usage and die in git-sh-setup
[guilt.git]
/
guilt-unapplied
blob
5bbe4d886b537d54ecb7ee63a4e8ba9659676143
1
#!/bin/bash
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
USAGE
=
""
7
. guilt
8
9
if
[
$#
-ne
0
];
then
10
usage
11
fi
12
13
n
=
`wc -l <
$applied
`
14
n
=
`expr
$n
+ 1`
15
16
idx
=
0
17
for
p
in
`get_series`
;
do
18
idx
=
`expr
$idx
+ 1`
19
[
$idx
-lt
$n
] &&
continue
20
21
echo
$p
22
done