Merged guilt.lib into guilt
[guilt.git] / guilt-init
blobf57663b4e6f981db805f2338a5fc13b8ab20ec9e
1 #!/bin/bash
3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 DO_NOT_CHECK_BRANCH_EXISTENCE=1
8 source "`dirname $0`/guilt"
10 if [ -d "$GUILT_DIR/$branch" ]; then
11 echo "Branch $branch appears to be already initialized (GIT_DIR=$GIT_DIR)"
12 exit 1
15 [ ! -d "$GUILT_DIR" ] && mkdir $GUILT_DIR
16 mkdir $GUILT_DIR/$branch
17 touch $GUILT_DIR/$branch/series
18 touch $GUILT_DIR/$branch/status