3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 DO_NOT_CHECK_BRANCH_EXISTENCE
=1
13 while case $# in 0) break ;; esac; do
14 if [ "$1" = "-n" ]; then
22 if [ -d "$GUILT_DIR/$branch" ]; then
23 die
"Branch $branch appears to be already initialized (GIT_DIR=$GIT_DIR)"
26 [ ! -d "$GUILT_DIR" ] && mkdir
"$GUILT_DIR"
27 mkdir
-p "$GUILT_DIR/$branch"
28 touch "$GUILT_DIR/$branch/series"
29 touch "$GUILT_DIR/$branch/status"
31 mkdir
-p "$GIT_DIR/hooks/guilt"
32 cat > "$GIT_DIR/hooks/guilt/delete" <<EOF
34 # Usage: <script> <patch being removed>
36 echo "Removing patch '\$1'..."
39 git-config
--int --replace-all guilt.autotag
$autotag