3 # Copyright (c) Josef "Jeff" Sipek, 2007
13 # make sure that there are no unapplied changes
14 if ! must_commit_first
; then
15 die
"Uncommited changes detected. Refresh first."
19 newbranch
="$branch-`date +%Y-%m-%d`"
24 if [ -e "$GUILT_DIR/$newbranch" ]; then
25 die
"Patch directory for branch \"$newbranch\" already exists."
28 git branch
"$newbranch"
29 git checkout
"$newbranch"
31 mkdir
-p "$GUILT_DIR/`dirname $newbranch`"
34 cp -a "$GUILT_DIR/$branch" "$GUILT_DIR/$newbranch"