summaryrefslogtreecommitdiff
path: root/git-reset.sh
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2006-05-19 09:16:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-19 22:03:21 (GMT)
commit67644a4d77f55cd1c960d046079d26719f1e7cd6 (patch)
treed7b35c3a18c53c7b1fbf9991561edfaf0b5158f0 /git-reset.sh
parent7792cc2fa1574b66b69a38a816a9b4bdca5c3731 (diff)
downloadgit-67644a4d77f55cd1c960d046079d26719f1e7cd6.zip
git-67644a4d77f55cd1c960d046079d26719f1e7cd6.tar.gz
git-67644a4d77f55cd1c960d046079d26719f1e7cd6.tar.bz2
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-reset.sh')
-rwxr-xr-xgit-reset.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-reset.sh b/git-reset.sh
index 0ee3e3e..296f3b7 100755
--- a/git-reset.sh
+++ b/git-reset.sh
@@ -48,7 +48,7 @@ then
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 )