[PATCH 2/11] Honor GIT_REFLOG_ACTION in git-rebase.
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Dec 28, 2006, 07:34 UTC
- Message-ID
- <20061228073452.GB17867@spearce.org>
- In-Reply-To
- <9847899e4ba836980dbfed6d0ea1c82f31f21456.1167290864.git.spearce@spearce.org>
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> --- git-reset.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-reset.sh b/git-reset.sh index 2379db0..a969370 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -5,6 +5,7 @@ USAGE='[--mixed | --soft | --hard] [<commit-ish>] [ [--] <paths>...]' SUBDIRECTORY_OK=Yes . git-sh-setup +set_reflog_action "reset $*" update= reset_type=--mixed unset rev @@ -81,7 +82,7 @@ then 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
-- 1.4.4.3.gd2e4