3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 USAGE
="[-f] <patchname>"
16 if [ "$1" != "-f" ]; then
30 if [ -z "$patch" ]; then
31 die
"You must specify a patch to delete"
34 if [ ! -f "$GUILT_DIR/$branch/$patch" ]; then
35 die
"Patch $patch does not exist."
38 p
=`grep -e "^$patch$" < "$applied"`
39 if [ ! -z "$p" ] ; then
40 die
"Cannot delete an applied patch"
43 series_remove_patch
"$patch"
45 guilt_hook
"delete" "$patch"
47 [ ! -z "$force" ] && rm -f $GUILT_DIR/$branch/$patch