{"thread":{"id":"39930","subject":"git history in a file","startedAt":"2015-07-24T12:16:19Z","lastAt":"2015-07-24T13:02:26Z","messageCount":3,"participants":["Josh Boyer","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"266723","messageId":"CA+5PVA6S69ZU5Q432PK3DiPGkT=00tAtgSzJaYHyXLkHkg9FHw@mail.gmail.com","threadId":"39930","inReplyTo":null,"subject":"git history in a file","fromName":"Josh Boyer","fromEmail":"jwboyer@fedoraproject.org","sentAt":"2015-07-24T12:16:19Z","receivedAt":"2015-07-24T12:16:19Z","isPatch":false,"sender":{"key":"jwboyer@fedoraproject.org","avatar":null},"body":"Hello,\n\nI'm trying to figure out how to generate a file that contains the git\nhistory and changes from one revision to another, such that when the\nfile is applied to a different tree starting at the same ancestor, the\nresulting tree is identical.\n\nE.g. git <whatever> v4.2-rc3..master\n\nwould produce this file, and then:\n\ngit <apply whatever> <file>\n\nrun on a tree which is currently at 4.2-rc3 would result in an identical HEAD.\n\nOriginally I thought git-format-patch would be sufficient, however it\ndoes not contain merge commits and the resulting commit shas seem like\nthey would be inaccurate.  Is there a way to do this?\n\nI realize one could just git fetch/pull from tree A to tree B, but the\nusecase here is more complicated.  Please CC me on replies as I am not\nsubscribed.\n\njosh\n"},{"id":"266724","messageId":"87wpxp4tae.fsf@igel.home","threadId":"39930","inReplyTo":"CA+5PVA6S69ZU5Q432PK3DiPGkT=00tAtgSzJaYHyXLkHkg9FHw@mail.gmail.com","subject":"Re: git history in a file","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2015-07-24T12:46:49Z","receivedAt":"2015-07-24T12:46:49Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Josh Boyer <jwboyer@fedoraproject.org> writes:\n\n> I'm trying to figure out how to generate a file that contains the git\n> history and changes from one revision to another, such that when the\n> file is applied to a different tree starting at the same ancestor, the\n> resulting tree is identical.\n\nSee git-bundle(1).\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"266725","messageId":"CA+5PVA70T5NpmYPBrSY7_2C2_-nSMT898kboa8_Xnv+6Borgsw@mail.gmail.com","threadId":"39930","inReplyTo":"87wpxp4tae.fsf@igel.home","subject":"Re: git history in a file","fromName":"Josh Boyer","fromEmail":"jwboyer@fedoraproject.org","sentAt":"2015-07-24T13:02:26Z","receivedAt":"2015-07-24T13:02:26Z","isPatch":false,"sender":{"key":"jwboyer@fedoraproject.org","avatar":null},"body":"On Fri, Jul 24, 2015 at 8:46 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:\n> Josh Boyer <jwboyer@fedoraproject.org> writes:\n>\n>> I'm trying to figure out how to generate a file that contains the git\n>> history and changes from one revision to another, such that when the\n>> file is applied to a different tree starting at the same ancestor, the\n>> resulting tree is identical.\n>\n> See git-bundle(1).\n\nThanks.  That does indeed seem like what I'm looking for.\n\njosh\n"}]}