guilt: Working around missing touch -d on Darwin.
[guilt/mob.git] / guilt-refresh
blobe866f801f6c5f545b9311a81b4be04ee9e81415f
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"
28 echo "Patch $TOP refreshed"