git-commit-scripton commit Add "commit" helper script (a3e870f)
   1#!/bin/sh
   2git-status-script > .editmsg
   3if [ "$?" != "0" ]
   4then
   5        cat .editmsg
   6        exit 1
   7fi
   8ED=${VISUAL:$EDITOR}
   9ED=${ED:vi}
  10$ED .editmsg
  11grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
  12[ -s .cmitmsg ] || exit 1
  13tree=$(git-write-tree) || exit 1
  14commit=$(cat .cmitmsg | git-commit-tree $tree -p HEAD) || exit 1
  15echo $commit > .git/HEAD