summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7792cc2)
raw | patch | inline | side by side (parent: 7792cc2)
author | Shawn Pearce <spearce@spearce.org> | |
Fri, 19 May 2006 09:16:18 +0000 (05:16 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 19 May 2006 22:03:21 +0000 (15:03 -0700) |
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>
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>
git-am.sh | patch | blob | history | |
git-applypatch.sh | patch | blob | history | |
git-branch.sh | patch | blob | history | |
git-commit.sh | patch | blob | history | |
git-reset.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index 33f208cb0b7a7d7bad264b41443a966a567156ff..25c95c24fde6894544f4b53439abd030008e757f 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
parent=$(git-rev-parse --verify HEAD) &&
commit=$(git-commit-tree $tree -p $parent <"$dotest/final-commit") &&
echo Committed: $commit &&
- git-update-ref HEAD $commit $parent ||
+ git-update-ref -m "am: $SUBJECT" HEAD $commit $parent ||
stop_here $this
if test -x "$GIT_DIR"/hooks/post-applypatch
diff --git a/git-applypatch.sh b/git-applypatch.sh
index 12cab1e0d4ceb1f1c58c418f96358b252713bf58..e4b09472e1fa27a6431b431572af7353c4f0a9b2 100755 (executable)
--- a/git-applypatch.sh
+++ b/git-applypatch.sh
parent=$(git-rev-parse --verify HEAD) &&
commit=$(git-commit-tree $tree -p $parent <"$final") || exit 1
echo Committed: $commit
-git-update-ref HEAD $commit $parent || exit
+git-update-ref -m "applypatch: $SUBJECT" HEAD $commit $parent || exit
if test -x "$GIT_DIR"/hooks/post-applypatch
then
diff --git a/git-branch.sh b/git-branch.sh
index 134e68cf7f0389d73af000c4303c4dda27f89d57..d1e37307617abd6144f36f93decbebd95a97fb32 100755 (executable)
--- a/git-branch.sh
+++ b/git-branch.sh
die "cannot force-update the current branch."
fi
fi
-git update-ref "refs/heads/$branchname" $rev
+git update-ref -m "branch: Created from $head" "refs/heads/$branchname" $rev
diff --git a/git-commit.sh b/git-commit.sh
index 6ef1a9dedc89af10865ed114458df88617bb5ca9..a4b0a907404f84581503d62011e5e82ecf50e715 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
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
diff --git a/git-reset.sh b/git-reset.sh
index 0ee3e3e154a7721dc9d604fd400d2f53eaad9940..296f3b779b5889e4f9e69f994587d70503e8b25e 100755 (executable)
--- a/git-reset.sh
+++ b/git-reset.sh
else
rm -f "$GIT_DIR/ORIG_HEAD"
fi
-git-update-ref HEAD "$rev"
+git-update-ref -m "reset $reset_type $@" HEAD "$rev"
case "$reset_type" in
--hard )