rebase -i: use a better reflog message
commit26cd160cb15635afd1c2937a3c15cfb256758323
authorRamkumar Ramachandra <artagnon@gmail.com>
Sun, 16 Jun 2013 08:45:13 +0000 (16 14:15 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Jun 2013 05:16:42 +0000 (23 22:16 -0700)
tree5307ca3e6aab73d1f391fbe28988b8151acb3cb7
parent4b03df210f77ac84ebed324c5d031f32872aaf0b
rebase -i: use a better reflog message

Now that the "checkout" invoked internally from "rebase -i" knows to
honor GIT_REFLOG_ACTION, we can start to use it to write a better
reflog message when "rebase anotherbranch", "rebase --onto branch",
etc. internally checks out the new fork point.  We will write:

  rebase -i: checkout master

instead of the old

  rebase -i

As all the calls git-rebase--interactive make to underlying git
commands that leave reflog messages are preceded by the internal
comment_for_reflog helper function, which uses the original value of
the GIT_REFLOG_ACTION variable it saw when it first started, the new
assignments to GIT_REFLOG_ACTION actively contaminate the value of
the variable, knowing that it will be reset to a sane value before
it is used again.  This does not generally hold true but it should
suffice for now.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
t/t3404-rebase-interactive.sh