summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f947413)
raw | patch | inline | side by side (parent: f947413)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 28 Dec 2006 07:34:52 +0000 (02:34 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Dec 2006 09:05:45 +0000 (01:05 -0800) |
To help correctly log actions caused by porcelain which invoke
git-reset directly we should honor the setting of GIT_REFLOG_ACTION
which we inherited from our caller.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-reset directly we should honor the setting of GIT_REFLOG_ACTION
which we inherited from our caller.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-reset.sh | patch | blob | history |
diff --git a/git-reset.sh b/git-reset.sh
index 2379db082f956e68a360cfbd667761490ecad5dd..a9693701a34dac623fcddb1943ffe326bdb05405 100755 (executable)
--- a/git-reset.sh
+++ b/git-reset.sh
USAGE='[--mixed | --soft | --hard] [<commit-ish>] [ [--] <paths>...]'
SUBDIRECTORY_OK=Yes
. git-sh-setup
+set_reflog_action "reset $*"
update= reset_type=--mixed
unset rev
else
rm -f "$GIT_DIR/ORIG_HEAD"
fi
-git-update-ref -m "reset $reset_type $*" HEAD "$rev"
+git-update-ref -m "$GIT_REFLOG_ACTION" HEAD "$rev"
update_ref_status=$?
case "$reset_type" in