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

Re: qgit idea: interface for cherry-picking

From
Junio C Hamano <junkio@cox.net>
Date
Jul 3, 2006, 20:03 UTC
Message-ID
<7vd5cmqwv3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e5bfff550607030418n6a46c0cdh1a95155e1feb4356@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
> I cannot test your patch now, so I'm just guessing, what if we have a
> series of patches?

The patch stops at each patch. I am primarily interested in keeping "git-am" usable from command line while making it easy to use from other tools.

The expected use for the patch you are responding to is that after the first application with --fail the user has an opportunity to fix the result up but needs to create a commit by rerunning "git-am" (or just drop that by resetting the index and saying "git-am --skip").

Show 10 quoted lines
> Is it possible that for two patches A and B happens that
>
> git-am A
> git-am B
> git-reset --soft HEAD^^
>
> gives a different result then
>
> git-am --fail A
> git-am --fail B

If you had a series of patches chosen inside your GUI and squash-apply them all, two full am with soft reset to the original state would be the easiest, if and only if both patch applications do not fail. If patch A does not apply for whatever reason, you have to guide your user through the patch adjustment process before applying B, regardless of the reason why the patch application failed (either A did not apply cleanly, or you gave --fail to the command).

The main question is what you would let your users do and how you would guide them through the process, when the application of an earlier patch in the series fails. I think it is a secondary implementation detail which of "git-am", "git-am --fail" or "git-apply" to implement that process.

Previous: Marco CostalbaNext: Marco Costalba
Message 9 of 18 in “qgit idea: interface for cherry-picking”
  1. Jakub NarebskiJul 2, 2006
  2. Marco CostalbaJul 2, 2006
  3. Jakub NarebskiJul 2, 2006
  4. Marco CostalbaJul 2, 2006
  5. Jakub NarebskiJul 2, 2006
  6. Marco CostalbaJul 3, 2006
  7. Junio C HamanoJul 3, 2006
  8. Marco CostalbaJul 3, 2006
  9. Junio C HamanoJul 3, 2006
  10. Marco CostalbaJul 4, 2006
  11. Jakub NarebskiJul 4, 2006
  12. Marco CostalbaJul 4, 2006
  13. Jakub NarebskiJul 4, 2006
  14. Marco CostalbaJul 4, 2006
  15. Junio C HamanoJul 4, 2006
  16. Jakub NarebskiJul 4, 2006
  17. Marco CostalbaJul 4, 2006
  18. Marco CostalbaJul 4, 2006

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.