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-next
blob
8faa7b5f09ba4b2fa350f2fd19a53fca6a1fb76c
1
#!/bin/sh
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
USAGE
=
"[-p|--path]"
7
.
`dirname
$0
`
/
guilt
8
9
while
[
$#
-ne
0
];
do
10
case
"
$1
"
in
11
-p
|
--path
)
12
path
=
"
$GUILT_DIR
/
$branch
/"
;;
13
*)
14
usage
;;
15
esac
16
shift
17
done
18
19
n
=
`wc -l <
$applied
`
20
n
=
$
((
$n
+
1
))
21
22
p
=
`get_series | awk "{ if (NR ==
$n
) print
\\
$0
}"`
23
24
if
[
-n
"
$p
"
];
then
25
disp
$path$p
26
fi