3 # Copyright (c) Josef "Jeff" Sipek, 2006-2011
6 DO_NOT_CHECK_BRANCH_EXISTENCE
=1
9 if [ -z "$GUILT_VERSION" ]; then
10 echo "Invoking $GUILT directly is no longer supported." >&2
16 while case $# in 0) break ;; esac; do
19 echo "Autotagging is no longer supported" >&2
28 if [ -d "$GUILT_DIR/$branch" ]; then
29 die
"Branch $branch appears to be already initialized (GIT_DIR=$GIT_DIR)"
32 [ ! -d "$GUILT_DIR" ] && mkdir
"$GUILT_DIR"
33 mkdir
-p "$GUILT_DIR/$branch"
34 touch "$GUILT_DIR/$branch/series"
35 touch "$GUILT_DIR/$branch/status"
37 mkdir
-p "$GIT_DIR/hooks/guilt"
38 cat > "$GIT_DIR/hooks/guilt/delete" <<EOF
40 # Usage: <script> <patch being removed>
42 echo "Removing patch '\$1'..."