doc: git doesn't use git-foo invocations.
[guilt.git] / guilt-next
blobd97e02d66b1db28d1d654e570889562ab18ca1de
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006-2013
6 USAGE="[-p|--path]"
7 if [ -z "$GUILT_VERSION" ]; then
8 echo "Invoking `basename "$0"` directly is no longer supported." >&2
9 exit 1
12 _main() {
14 while [ $# -ne 0 ]; do
15 case "$1" in
16 -p|--path)
17 path="$GUILT_DIR/$branch/" ;;
19 usage ;;
20 esac
21 shift
22 done
24 n=`wc -l < "$applied"`
25 n=$(($n + 1))
27 p=`get_series | awk "{ if (NR == $n) print \\$0}"`
29 if [ -n "$p" ]; then
30 disp $path$p