{"thread":{"id":"30809","subject":"how to get the formated patches from the merge id","startedAt":"2012-06-14T16:25:12Z","lastAt":"2012-06-15T13:11:59Z","messageCount":7,"participants":["lei yang","Thomas Ferris Nicolaisen","Vincent van Ravesteijn","Konstantin Khomoutov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"193658","messageId":"CAHsH0E98t7EcvXM0zSjMGHcd5u4_Lp6B7q9KAhcE0eyo-tXnWw@mail.gmail.com","threadId":"30809","inReplyTo":null,"subject":"how to get the formated patches from the merge id","fromName":"lei yang","fromEmail":"yanglei.fage-re5jqeeqqe8avxtiumwx3w@public.gmane.org","sentAt":"2012-06-14T16:25:12Z","receivedAt":"2012-06-14T16:25:12Z","isPatch":false,"sender":{"key":"yanglei.fage-re5jqeeqqe8avxtiumwx3w@public.gmane.org","avatar":null},"body":"Hello list:\n\neg:\n\ncommit 0e93b4b304ae052ba1bc73f6d34a68556fe93429\nMerge: b724cc1 51bfd29\n\nhow can I from 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the\nformated patch ?\n(I know we can do git format-patch b724cc1..51bfd29, but how to from\n0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get?)\n\nLei\n\n-- \nYou received this message because you are subscribed to the Google Groups \"Git for human beings\" group.\nTo post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nTo unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nFor more options, visit this group at http://groups.google.com/group/git-users?hl=en.\n"},{"id":"193685","messageId":"9579793f-d72f-424c-9546-f2caa1fbf847@googlegroups.com","threadId":"30809","inReplyTo":"CAHsH0E98t7EcvXM0zSjMGHcd5u4_Lp6B7q9KAhcE0eyo-tXnWw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org","subject":"Re: how to get the formated patches from the merge id","fromName":"Thomas Ferris Nicolaisen","fromEmail":"tfnico-re5jqeeqqe8avxtiumwx3w@public.gmane.org","sentAt":"2012-06-15T08:02:22Z","receivedAt":"2012-06-15T08:02:22Z","isPatch":false,"sender":{"key":"tfnico-re5jqeeqqe8avxtiumwx3w@public.gmane.org","avatar":null},"body":"I don't really understand what you're trying to do here. Could you try \nexplaining in a little more detail?\n\nOn Thursday, June 14, 2012 6:25:12 PM UTC+2, lei yang wrote:\n>\n> Hello list: \n>\n> eg: \n>\n> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429 \n> Merge: b724cc1 51bfd29 \n>\n> how can I from 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the \n> formated patch ? \n> (I know we can do git format-patch b724cc1..51bfd29, but how to from \n> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get?) \n>\n> Lei \n>\n\n-- \nYou received this message because you are subscribed to the Google Groups \"Git for human beings\" group.\nTo view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/kVcX-TK_VowJ.\nTo post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nTo unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nFor more options, visit this group at http://groups.google.com/group/git-users?hl=en.\n\n"},{"id":"193687","messageId":"CAHsH0E995C2Fsiyr=MZOH2VyN=mFvnWjrV=6LWkfv-YLy+2RjQ@mail.gmail.com","threadId":"30809","inReplyTo":"9579793f-d72f-424c-9546-f2caa1fbf847-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org","subject":"Re: Re: how to get the formated patches from the merge id","fromName":"lei yang","fromEmail":"yanglei.fage-re5jqeeqqe8avxtiumwx3w@public.gmane.org","sentAt":"2012-06-15T11:46:22Z","receivedAt":"2012-06-15T11:46:22Z","isPatch":false,"sender":{"key":"yanglei.fage-re5jqeeqqe8avxtiumwx3w@public.gmane.org","avatar":null},"body":"Hi\n\nI mean,\n\nI have a commit like below\ncommit 0e93b4b304ae052ba1bc73f6d34a68556fe93429\nMerge: b724cc1 51bfd29\n\nThis commit done this work: merge b724cc1..51bfd29 commit,\n\nThe question is how could I *onlys* through\n0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for\nthe\ncommit(b724cc1..51bfd29)\n\nLei\n\n\nOn Fri, Jun 15, 2012 at 4:02 PM, Thomas Ferris Nicolaisen\n<tfnico-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:\n> I don't really understand what you're trying to do here. Could you try\n> explaining in a little more detail?\n>\n>\n> On Thursday, June 14, 2012 6:25:12 PM UTC+2, lei yang wrote:\n>>\n>> Hello list:\n>>\n>> eg:\n>>\n>> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429\n>> Merge: b724cc1 51bfd29\n>>\n>> how can I from 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the\n>> formated patch ?\n>> (I know we can do git format-patch b724cc1..51bfd29, but how to from\n>> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get?)\n>>\n>> Lei\n>\n> --\n> You received this message because you are subscribed to the Google Groups\n> \"Git for human beings\" group.\n> To view this discussion on the web visit\n> https://groups.google.com/d/msg/git-users/-/kVcX-TK_VowJ.\n> To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\n> To unsubscribe from this group, send email to\n> git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\n> For more options, visit this group at\n> http://groups.google.com/group/git-users?hl=en.\n\n-- \nYou received this message because you are subscribed to the Google Groups \"Git for human beings\" group.\nTo post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nTo unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nFor more options, visit this group at http://groups.google.com/group/git-users?hl=en.\n"},{"id":"193688","messageId":"4FDB239A.9070803@lyx.org","threadId":"30809","inReplyTo":"CAHsH0E995C2Fsiyr=MZOH2VyN=mFvnWjrV=6LWkfv-YLy+2RjQ@mail.gmail.com","subject":"Re: [git-users] Re: how to get the formated patches from the merge id","fromName":"Vincent van Ravesteijn","fromEmail":"vfr@lyx.org","sentAt":"2012-06-15T11:59:22Z","receivedAt":"2012-06-15T11:59:22Z","isPatch":false,"sender":{"key":"vfr@lyx.org","avatar":"https://avatars.githubusercontent.com/u/687868?v=4"},"body":"Op 15-6-2012 13:46, lei yang schreef:\n> Hi\n>\n> I mean,\n>\n> I have a commit like below\n> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429\n> Merge: b724cc1 51bfd29\n>\n> This commit done this work: merge b724cc1..51bfd29 commit,\n>\n> The question is how could I *onlys* through\n> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for\n> the\n> commit(b724cc1..51bfd29)\n\nIt is still not clear what you want to accomplish.\n\nYour proposal: \"git format-patch b724cc1..51bfd29\" only gives you the \ncommits that were in the branch 51bfd29 that weren't yet in the branch \nb724cc1. This just reflect the commits of one of the branches, but not \nthe \"work done by the merge commit\".\n\nIf this is really what you want you can do:\n\n$ git format-patch 0e93b4b3^1..0e93b4b3^2\n\n0e93b4b3^1 means the first parent of 0e93b4b3, which is b724cc1. \n0e93b4b3^2 means the second parent, which is 51bfd29\n\nHTH,\n\nVincent\n"},{"id":"193689","messageId":"20120615162842.90e63870.kostix@domain007.com","threadId":"30809","inReplyTo":"CAHsH0E995C2Fsiyr=MZOH2VyN=mFvnWjrV=6LWkfv-YLy+2RjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org","subject":"Re: Re: how to get the formated patches from the merge id","fromName":"Konstantin Khomoutov","fromEmail":"flatworm-rn4veauk+akrv+lv9mx5uipxlwaovq5f@public.gmane.org","sentAt":"2012-06-15T12:28:42Z","receivedAt":"2012-06-15T12:28:42Z","isPatch":false,"sender":{"key":"flatworm-rn4veauk+akrv+lv9mx5uipxlwaovq5f@public.gmane.org","avatar":null},"body":"On Fri, 15 Jun 2012 19:46:22 +0800\nlei yang <yanglei.fage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:\n\n> I have a commit like below\n> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429\n> Merge: b724cc1 51bfd29\n> \n> This commit done this work: merge b724cc1..51bfd29 commit,\nThis is a gross misunderstanding of how revision ranges work in Git.\nPlease read the \"gitrevisions\" manual page.\nMore precisely, the A..B notation means \"All commits reachable from B\nexcluding those reachable from A\".\nA merge means that two lines of history (those ending with commits\nb724cc1 and 51bfd29, respectively) are merged together.\nWriting this as b724cc1..51bfd29 is incorrect and confusing for\nthe readers.\n\n> The question is how could I *onlys* through\n> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for\n> the commit(b724cc1..51bfd29)\nThis phrase again missies a predicate (a verb) so we consistently\nfail to comprehend your intent.\nYou could try to find a colleague with a bit better English skill and\nask his/her to provide a better translation so we're able to understan\nit.\nAlso try to get rid of that \"..\" notation as it seems to ruin your\nattempts to get us understand the matter.\n\n-- \nYou received this message because you are subscribed to the Google Groups \"Git for human beings\" group.\nTo post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nTo unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nFor more options, visit this group at http://groups.google.com/group/git-users?hl=en.\n"},{"id":"193690","messageId":"CAHsH0E8MzMW8SEFGB_X80qH_5btnmvLWFxjQ-EBSaGbHSUz-Sg@mail.gmail.com","threadId":"30809","inReplyTo":"4FDB239A.9070803-0hXrFu2P2+c@public.gmane.org","subject":"Re: Re: how to get the formated patches from the merge id","fromName":"lei yang","fromEmail":"yanglei.fage-re5jqeeqqe8avxtiumwx3w@public.gmane.org","sentAt":"2012-06-15T12:56:28Z","receivedAt":"2012-06-15T12:56:28Z","isPatch":false,"sender":{"key":"yanglei.fage-re5jqeeqqe8avxtiumwx3w@public.gmane.org","avatar":null},"body":"On Fri, Jun 15, 2012 at 7:59 PM, Vincent van Ravesteijn <vfr-0hXrFu2P2+c@public.gmane.org> wrote:\n> Op 15-6-2012 13:46, lei yang schreef:\n>\n>> Hi\n>>\n>> I mean,\n>>\n>> I have a commit like below\n>> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429\n>> Merge: b724cc1 51bfd29\n>>\n>> This commit done this work: merge b724cc1..51bfd29 commit,\n>>\n>> The question is how could I *onlys* through\n>> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for\n>> the\n>> commit(b724cc1..51bfd29)\n>\n>\n> It is still not clear what you want to accomplish.\n>\n> Your proposal: \"git format-patch b724cc1..51bfd29\" only gives you the\n> commits that were in the branch 51bfd29 that weren't yet in the branch\n> b724cc1. This just reflect the commits of one of the branches, but not the\n> \"work done by the merge commit\".\n>\n\n\nbut,git format-patch b724cc1..51bfd29 do the same work as what you\nsaid \"git format-patch 0e93b4b3^1..0e93b4b3^2\"\nso this do the same thing, formated patch which merged, can you give a\ntry to explain it in your workspace. and I don't understand what you\nsaid \"branch 51bfd29\",51bfd29 is not the branch\n\nThanks for your help,git format-patch 0e93b4b3^1..0e93b4b3^2 is what I need.\n\nLei\n\n\n\n\n\n> If this is really what you want you can do:\n>\n> $ git format-patch 0e93b4b3^1..0e93b4b3^2\n>\n> 0e93b4b3^1 means the first parent of 0e93b4b3, which is b724cc1. 0e93b4b3^2\n> means the second parent, which is 51bfd29\n>\n> HTH,\n>\n> Vincent\n\n-- \nYou received this message because you are subscribed to the Google Groups \"Git for human beings\" group.\nTo post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nTo unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org\nFor more options, visit this group at http://groups.google.com/group/git-users?hl=en.\n"},{"id":"193691","messageId":"4FDB349F.3080507@lyx.org","threadId":"30809","inReplyTo":"CAHsH0E8MzMW8SEFGB_X80qH_5btnmvLWFxjQ-EBSaGbHSUz-Sg@mail.gmail.com","subject":"Re: [git-users] Re: how to get the formated patches from the merge id","fromName":"Vincent van Ravesteijn","fromEmail":"vfr@lyx.org","sentAt":"2012-06-15T13:11:59Z","receivedAt":"2012-06-15T13:11:59Z","isPatch":false,"sender":{"key":"vfr@lyx.org","avatar":"https://avatars.githubusercontent.com/u/687868?v=4"},"body":"Op 15-6-2012 14:56, lei yang schreef:\n> On Fri, Jun 15, 2012 at 7:59 PM, Vincent van Ravesteijn<vfr@lyx.org>  wrote:\n>> It is still not clear what you want to accomplish.\n>>\n>> Your proposal: \"git format-patch b724cc1..51bfd29\" only gives you the\n>> commits that were in the branch 51bfd29 that weren't yet in the branch\n>> b724cc1. This just reflect the commits of one of the branches, but not the\n>> \"work done by the merge commit\".\n>>\n>\n> but,git format-patch b724cc1..51bfd29 do the same work as what you\n> said \"git format-patch 0e93b4b3^1..0e93b4b3^2\"\n\nYes, that's why I said \"If this is _really_ what you want, you can do ...\".\n\n\n> and I don't understand what you\n> said \"branch 51bfd29\",51bfd29 is not the branch\n\nI assumed that the merge commit, merged two branches, but I have no clue \nhow they were named. That's why I refer to the branch as the branch \nwhich had 51bfd29 as the last commit before the merge.\n\nVincent\n"}]}