]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: write useful reflog message for fast-forward
authorRamkumar Ramachandra <artagnon@gmail.com>
Wed, 19 Jun 2013 07:37:09 +0000 (13:07 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Jun 2013 18:03:22 +0000 (11:03 -0700)
commiteb4be1cbe2e50c9bfaa09839564723de257869fc
treefbf9d8234e9002e32fa432524fc9bb8bed840ea4
parentfb7dfaa710da6f9ebb854f70ffc1c78668a1e70c
sequencer: write useful reflog message for fast-forward

The following command

  $ git cherry-pick --ff b8bb3f

writes the following uninformative message to the reflog

  cherry-pick

Improve it to

  cherry-pick: fast-forward

Avoid hard-coding "cherry-pick" in fast_forward_to(), so the sequencer
is generic enough to support future actions.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c