@matheusbsbs / matheus-bagliano / commits / 42ea5a5784
Fork 0

Honor GIT_REFLOG_ACTION in git-rebase.

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>

Shawn O. Pearce committed Dec 28, 2006 at 02:34 UTC 42ea5a5784a60d1e9280d81619779edd870c2fcc
1 file changed +2 -1
git-reset.sh
+2 -1
@@ -5,6 +5,7 @@
5 USAGE='[--mixed | --soft | --hard] [<commit-ish>] [ [--] <paths>...]'
6 SUBDIRECTORY_OK=Yes
7 . git-sh-setup
8 +set_reflog_action "reset $*"
9
10 update= reset_type=--mixed
11 unset rev
@@ -81,7 +82,7 @@ then
82 else
83 rm -f "$GIT_DIR/ORIG_HEAD"
84 fi
84 -git-update-ref -m "reset $reset_type $*" HEAD "$rev"
85 +git-update-ref -m "$GIT_REFLOG_ACTION" HEAD "$rev"
86 update_ref_status=$?
87
88 case "$reset_type" in