3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 DO_NOT_CHECK_BRANCH_EXISTENCE
=1
11 while case $# in 0) break ;; esac; do
14 echo "Autotagging is no longer supported" >&2
23 if [ -d "$GUILT_DIR/$branch" ]; then
24 die
"Branch $branch appears to be already initialized (GIT_DIR=$GIT_DIR)"
27 [ ! -d "$GUILT_DIR" ] && mkdir
"$GUILT_DIR"
28 mkdir
-p "$GUILT_DIR/$branch"
29 touch "$GUILT_DIR/$branch/series"
30 touch "$GUILT_DIR/$branch/status"
32 mkdir
-p "$GIT_DIR/hooks/guilt"
33 cat > "$GIT_DIR/hooks/guilt/delete" <<EOF
35 # Usage: <script> <patch being removed>
37 echo "Removing patch '\$1'..."