Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 60 lines (53 sloc) 1.1 KB
#!/bin/sh
#
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
#
USAGE="[-v | -g | -e]"
. `dirname $0`/guilt
while case "$#" in 0) break ;; esac
do
case "$1" in
-v)
verbose=t ;;
-g)
gui=t ;;
-e)
edit=t ;;
*)
usage ;;
esac
shift
done
if [ ! -z "$edit" ]; then
git_editor "$series"
elif [ ! -z "$gui" ]; then
[ -z "`get_top`" ] && die "No patches applied."
bottom=`git rev-parse refs/patches/$branch/$(head -1 $applied)`
top=`git rev-parse refs/patches/$branch/$(tail -1 $applied)`
range="$bottom..$top"
# FIXME, this doesn't quite work - it's perfectly fine with
# "git rev-list", but gitk for whatever reason likes to include the
# parent
[ "$bottom" = "$top" ] && range="$bottom^..$bottom"
gitk $range
elif [ -z "$verbose" ]; then
get_full_series
else
prefix="+"
top=`get_top`
get_full_series |
while read patch; do
if [ -z "$top" ]; then
disp " $patch"
else
if [ "$patch" = "$top" ]; then
disp "= $patch"
prefix=" "
elif [ $(check_guards "$patch"; echo $?) -eq 1 ]; then
echo " $patch"
else
disp "$prefix $patch"
fi
fi
done
fi
Something went wrong with that request. Please try again.