import-commit: replace be careful about * and ? in filenames
[guilt.git] / guilt-refresh
blobc29ceaad965c4021219343b5c67d5d8284bf441d
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 USAGE="[--git] [--diffstat]"
7 . `dirname $0`/guilt
9 while [ $# -gt 0 ]; do
10 case "$1" in
11 --git)
12 gdiff=t ;;
13 --diffstat)
14 dstat=t ;;
16 usage ;;
17 esac
18 shift
19 done
21 TOP=`get_top`
23 if [ -z "$TOP" ]; then
24 die "No patches applied; try guilt-push first"
27 refresh_patch "$TOP" "$gdiff" "$dstat"