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 v0.35
[guilt/mob.git]
/
guilt-prev
blob
d4540303bc720aa2c4af1d6e87d944b79297faa1
1
#!/bin/sh
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006-2011
4
#
5
6
USAGE
=
"[-p|--path]"
7
if
[
-z
"
$GUILT_VERSION
"
];
then
8
echo
"Invoking `basename
$0
` directly is no longer supported."
>&
2
9
exit
1
10
fi
11
12
_main
() {
13
14
while
[
$#
-ne
0
];
do
15
case
"
$1
"
in
16
-p
|
--path
)
17
path
=
"
$GUILT_DIR
/
$branch
/"
;;
18
*)
19
usage
;;
20
esac
21
shift
22
done
23
24
p
=
`get_prev`
25
26
if
[
-n
"
$p
"
];
then
27
disp
$path$p
28
fi
29
30
}