git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] Introduce CHERRY_PICK_HEAD

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 16, 2011, 22:13 UTC
Message-ID
<AANLkTimBExej1mF=4UuTszcSoKy_xnj7bB3BaT5ze2vH@mail.gmail.com>
In-Reply-To
<20110216214236.GC2615@elie>
On Wed, Feb 16, 2011 at 4:42 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Nit: GIT_CHERRY_PICK_HELP is not just for rebase --interactive but
> for arbitrary porcelain that wants to take care of the commit itself
> (see v1.5.4-rc0~106^2~1, revert/cherry-pick: Allow overriding the
> help text by the calling Porcelain, 2007-11-28).
What is the arbitrary porcelain you have in mind? :-)
> The conservative thing to do is indeed to remove CHERRY_PICK_HEAD in
> this case, I suppose.  But I'd like to have the CHERRY_PICK_HEAD to
> get the --amend safety when rebasing.  I can send a separate patch
> for it if you'd like.

Please do, since I'm not really sure what you have in mind. If CHERRY_PICK_HEAD is left-behind, it interferes with the eventually commit done by rebase --continue. I suppose we could give commit.c some additional logic to detect when it's being called by rebase (setting whence = FROM_REBASE?).

In the mean time, I'll re-roll with your additional tests and Junio's prior feedback.

Thanks,
j.
Previous: Jonathan NiederNext: Jonathan Nieder
Message 8 of 18 in “CHERRY_PICK_HEAD”
  1. 0/2 CHERRY_PICK_HEADJay Soffian, Feb 16, 2011
  2. 1/2 Introduce CHERRY_PICK_HEADJay Soffian, Feb 16, 2011
  3. Nguyen Thai Ngoc DuyFeb 16, 2011
  4. Jay SoffianFeb 16, 2011
  5. Introduce CHERRY_PICK_HEADJay Soffian, Feb 16, 2011
  6. Jay SoffianFeb 16, 2011
  7. Jonathan NiederFeb 16, 2011
  8. Jay SoffianFeb 16, 2011
  9. Jonathan NiederFeb 16, 2011
  10. Junio C HamanoFeb 17, 2011
  11. Jonathan NiederFeb 17, 2011
  12. 2/2 Teach commit about CHERRY_PICK_HEADJay Soffian, Feb 16, 2011
  13. Junio C HamanoFeb 16, 2011
  14. Jay SoffianFeb 16, 2011
  15. 5/2 bash: teach __git_ps1 about CHERRY_PICK_HEADJonathan Nieder, Feb 16, 2011
  16. Junio C HamanoFeb 16, 2011
  17. Jonathan NiederFeb 16, 2011
  18. Jay SoffianFeb 17, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.