summaryrefslogtreecommitdiff
path: root/git-revert.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-19 17:12:11 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-03 15:17:49 -0800
commit23913dc713a4f5b5228258919769ff1ab0a74a2b (patch)
tree2ab9a508f4c3ca1ec5806921349f32373526edcd /git-revert.sh
parent5f856dd47dacb30fb9f605b4b7e1fa577ada7d26 (diff)
downloadgit-23913dc713a4f5b5228258919769ff1ab0a74a2b.tar.gz
honor GIT_REFLOG_ACTION in git-commit
This allows git-cherry-pick and git-revert to properly identify themselves in the resulting reflog entries. Earlier they were recorded as what git-commit has done. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-revert.sh')
-rwxr-xr-xgit-revert.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-revert.sh b/git-revert.sh
index 866d622d23..49f00321b2 100755
--- a/git-revert.sh
+++ b/git-revert.sh
@@ -54,6 +54,8 @@ do
shift
done
+set_reflog_action "$me"
+
test "$me,$replay" = "revert,t" && usage
case "$no_commit" in