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

Re: qgit idea: interface for cherry-picking

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Jul 3, 2006, 11:18 UTC
Message-ID
<e5bfff550607030418n6a46c0cdh1a95155e1feb4356@mail.gmail.com>
In-Reply-To
<7vzmfrrxyp.fsf@assigned-by-dhcp.cox.net>
On 7/3/06, Junio C Hamano <junkio@cox.net> wrote:
Show 13 quoted lines
> "Marco Costalba" <mcostalba@gmail.com> writes:
>
> > When I need to modify the patch/revision before to import I usaually
> > drag&drop and then I call git-reset --soft, then I edit working
> > directory and commit again.
>
> These days, I tend to just let "am" or "pull" do its thing, edit
> working tree and retest, and run "commit --amend".  Before we
> added "commit --amend", I used to do soft reset and recommit
> like you described above.  One advantage of "commit --amend" is
> that it can even amend a merge, but I do not think it applies to
> what Jakub wants in this thread.
>

I cannot test your patch now, so I'm just guessing, what if we have a series of patches? 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

As example, if B modify the same file of A then could happen that in the latter case git-am --fail B stops with conflicts because the working dir is not synced with the index (this happens only in the latter case) ?

Put in other words, I don't know if the two procedures are _equivalent_ because in the first case you operate under the assumption that working dir and index are always synced before and after to apply, in the second case this assumption is broken so I don't know if this could have side effects.

      Marco
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 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.