Re: [RFC/PATCH 2/2] Teach commit to handle CHERRY_HEAD automatically
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 16, 2011, 00:03 UTC
- Message-ID
- <AANLkTinrQ4hSh-dg6mU=gYi6C8ZWS4eFKbAV=8eucEg2@mail.gmail.com>
- In-Reply-To
- <20110215234735.GA18151@elie>
On Tue, Feb 15, 2011 at 6:47 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 5 quoted lines
> I meant the following sequence of operations: > > # by the way, does this set CHERRY_PICK_HEAD? > git cherry-pick --no-commit F > git commit -C F-prime
CHERRY_PICK_HEAD is not written if you use --no-commit. I'm going to punt here and say that's not my itch, thus...
Show 10 quoted lines
> But that was a silly example --- -C takes care of authorship on its > own. A better example might be > > git cherry-pick --no-commit F > git commit -F the-message > > or > > git cherry-pick --no-commit F > git commit --amend -C F-prime
Because CHERRY_PICK_HEAD wasn't written, commit in this case behaves as it did before this series.
j.