diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-05-19 05:16:18 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-19 15:03:21 -0700 |
commit | 67644a4d77f55cd1c960d046079d26719f1e7cd6 (patch) | |
tree | d7b35c3a18c53c7b1fbf9991561edfaf0b5158f0 /git-commit.sh | |
parent | 7792cc2fa1574b66b69a38a816a9b4bdca5c3731 (diff) | |
download | git-67644a4d77f55cd1c960d046079d26719f1e7cd6.tar.gz git-67644a4d77f55cd1c960d046079d26719f1e7cd6.tar.xz |
Include ref log detail in commit, reset, etc.
When updating a ref at the direction of the user include a reason why
head was changed as part of the ref log (assuming it was enabled).
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-x | git-commit.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh index 6ef1a9ded..a4b0a9074 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -676,7 +676,8 @@ then 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 |