Code

commit: use value of GIT_REFLOG_ACTION env variable as reflog message
authorChristian Couder <chriscool@tuxfamily.org>
Sat, 12 Jun 2010 16:05:12 +0000 (18:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Jun 2010 16:42:38 +0000 (09:42 -0700)
commit643cb5f7c99e77a4a3e97213dd226a7dc2650c02
tree9eaf300ca31ad8b4a382e8990843c68bbf144b1f
parent0d4dbcd35e89a549055e34daf410e4579571b984
commit: use value of GIT_REFLOG_ACTION env variable as reflog message

The environment variable GIT_REFLOG_ACTION was used by git-commit.sh,
but when it was converted to a builtin
(f5bbc3225c4b073a7ff3218164a0c820299bc9c6, Port git commit to C,
Nov 8 2007) this was lost.

Let's use it again as it is more user friendly when reverting or
cherry-picking to see "revert" or "cherry-pick" in the reflog rather
than to just see "commit".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t3501-revert-cherry-pick.sh