3 # Copyright (c) Josef "Jeff" Sipek, 2006-2013
6 USAGE
="[--git] [--diffstat]"
7 COLOR
=`git config --get color.ui`
9 if [ -z "$GUILT_VERSION" ]; then
10 echo "Invoking `basename "$0"` directly is no longer supported." >&2
16 if [ "$COLOR" = "always" ]; then
17 echo "git color.ui=always is unsupported because"
18 echo "escape characters will be redirected"
19 echo "please set it to color.ui=auto"
23 while [ $# -gt 0 ]; do
37 if [ -z "$TOP" ]; then
38 die
"No patches applied; try guilt push first"
41 refresh_patch
"$TOP" "$gdiff" "$dstat"
42 echo "Patch $TOP refreshed"