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
Check HEAD hash against what we expect before push/pop/refresh
[guilt.git]
/
guilt-unapplied
blob
213d44fbb3723c3fb0ac5ee8898f8f2475592ace
1
#!/bin/bash
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
source
"`dirname
$0
`/guilt"
7
8
if
[
$#
-ne
0
];
then
9
print_usage
10
exit
1
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