3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
9 while case "$#" in 0) break ;; esac
24 if [ ! -z "$edit" ]; then
26 elif [ ! -z "$gui" ]; then
27 [ -z "`get_top`" ] && die
"No patches applied."
28 bottom
=`git rev-parse refs/patches/$branch/$(head -1 $applied)`
29 top
=`git rev-parse refs/patches/$branch/$(tail -1 $applied)`
32 # FIXME, this doesn't quite work - it's perfectly fine with
33 # "git rev-list", but gitk for whatever reason likes to include the
35 [ "$bottom" = "$top" ] && range
="$bottom^..$bottom"
38 elif [ -z "$verbose" ]; then
46 if [ -z "$top" ]; then
49 if [ "$patch" = "$top" ]; then
52 elif [ $
(check_guards
"$patch"; echo $?
) -eq 1 ]; then