3 # Copyright (c) Josef "Jeff" Sipek, 2006-2011
7 if [ -z "$GUILT_VERSION" ]; then
8 echo "Invoking `basename $0` directly is no longer supported." >&2
14 while case "$#" in 0) break ;; esac
29 if [ ! -z "$edit" ]; then
31 elif [ ! -z "$gui" ]; then
32 [ -z "`get_top`" ] && die
"No patches applied."
33 bottom
=`git rev-parse refs/patches/$branch/$(head_n 1 $applied)`
34 top
=`git rev-parse refs/patches/$branch/$(tail -n 1 $applied)`
37 # FIXME, this doesn't quite work - it's perfectly fine with
38 # "git rev-list", but gitk for whatever reason likes to include the
40 [ "$bottom" = "$top" ] && range
="$bottom^..$bottom"
43 elif [ -z "$verbose" ]; then
51 if [ -z "$top" ]; then
54 if [ "$patch" = "$top" ]; then
57 elif [ $
(check_guards
"$patch"; echo $?
) -eq 1 ]; then