Merge branch 'master' into next
authorJunio C Hamano <junkio@cox.net>
Fri, 26 May 2006 23:36:20 +0000 (16:36 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 26 May 2006 23:36:20 +0000 (16:36 -0700)
* master:
  Call builtin ls-tree in git-cat-file -p
  built-in format-patch: various fixups.
  Add instructions to commit template.

1  2 
git-commit.sh

diff --combined git-commit.sh
@@@ -626,6 -626,9 +626,9 @@@ f
  if test -z "$no_edit"
  then
        {
+               echo ""
+               echo "# Please enter the commit message for your changes."
+               echo "# (Comment lines starting with '#' will not be included)"
                test -z "$only_include_assumed" || echo "$only_include_assumed"
                run_status
        } >>"$GIT_DIR"/COMMIT_EDITMSG
@@@ -687,8 -690,7 +690,8 @@@ the
                rm -f "$TMP_INDEX"
        fi &&
        commit=$(cat "$GIT_DIR"/COMMIT_MSG | git-commit-tree $tree $PARENTS) &&
 -      git-update-ref HEAD $commit $current &&
 +      rlogm=$(sed -e 1q "$GIT_DIR"/COMMIT_MSG) &&
 +      git-update-ref -m "commit: $rlogm" HEAD $commit $current &&
        rm -f -- "$GIT_DIR/MERGE_HEAD" &&
        if test -f "$NEXT_INDEX"
        then