1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/bin/sh
#
# Copyright (c) Josef "Jeff" Sipek, 2006-2013
#
USAGE="[--git] [--diffstat]"
if [ -z "$GUILT_VERSION" ]; then
echo "Invoking `basename "$0"` directly is no longer supported." >&2
exit 1
fi
_main() {
while [ $# -gt 0 ]; do
case "$1" in
--git)
gdiff=t ;;
--diffstat)
dstat=t ;;
*)
usage ;;
esac
shift
done
TOP=`get_top`
if [ -z "$TOP" ]; then
die "No patches applied; try guilt push first"
fi
refresh_patch "$TOP" "$gdiff" "$dstat"
echo "Patch $TOP refreshed"
}
|