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

Re: [git-users] Re: how to get the formated patches from the merge id

From
Vincent van Ravesteijn <vfr@lyx.org>
Date
Jun 15, 2012, 11:59 UTC
Message-ID
<4FDB239A.9070803@lyx.org>
In-Reply-To
<CAHsH0E995C2Fsiyr=MZOH2VyN=mFvnWjrV=6LWkfv-YLy+2RjQ@mail.gmail.com>
Op 15-6-2012 13:46, lei yang schreef:
Show 14 quoted lines
> Hi
>
> I mean,
>
> I have a commit like below
> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
> Merge: b724cc1 51bfd29
>
> This commit done this work: merge b724cc1..51bfd29 commit,
>
> The question is how could I *onlys* through
> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for
> the
> commit(b724cc1..51bfd29)
It is still not clear what you want to accomplish.

Your proposal: "git format-patch b724cc1..51bfd29" only gives you the commits that were in the branch 51bfd29 that weren't yet in the branch b724cc1. This just reflect the commits of one of the branches, but not the "work done by the merge commit".

If this is really what you want you can do:
$ git format-patch 0e93b4b3^1..0e93b4b3^2

0e93b4b3^1 means the first parent of 0e93b4b3, which is b724cc1. 0e93b4b3^2 means the second parent, which is 51bfd29

HTH,
Vincent
Previous: lei yangNext: Konstantin Khomoutov
Message 4 of 7 in “how to get the formated patches from the merge id”
  1. lei yangJun 14, 2012
  2. Thomas Ferris NicolaisenJun 15, 2012
  3. lei yangJun 15, 2012
  4. Vincent van RavesteijnJun 15, 2012
  5. Konstantin KhomoutovJun 15, 2012
  6. lei yangJun 15, 2012
  7. Vincent van RavesteijnJun 15, 2012

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.