2 git-status-script > .editmsg
8 ${VISUAL:-${EDITOR:-vi}} .editmsg
9 grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
10 [ -s .cmitmsg ] || exit 1
11 tree=$(git-write-tree) || exit 1
12 commit=$(cat .cmitmsg | git-commit-tree $tree -p HEAD) || exit 1
13 echo $commit > .git/HEAD