[PATCH] guilt: fix "from: xxx" filtering in the patch description
[guilt.git] / guilt-refresh
blobf764937958def6fa44261fda2cd6e1a4eb12cd87
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006-2011
6 USAGE="[--git] [--diffstat]"
7 if [ -z "$GUILT_VERSION" ]; then
8 echo "Invoking `basename $0` directly is no longer supported." >&2
9 exit 1
12 _main() {
14 while [ $# -gt 0 ]; do
15 case "$1" in
16 --git)
17 gdiff=t ;;
18 --diffstat)
19 dstat=t ;;
21 usage ;;
22 esac
23 shift
24 done
26 TOP=`get_top`
28 if [ -z "$TOP" ]; then
29 die "No patches applied; try guilt push first"
32 refresh_patch "$TOP" "$gdiff" "$dstat"
33 echo "Patch $TOP refreshed"