{"thread":{"id":"29183","subject":"git-p4 using notes","startedAt":"2011-12-16T16:07:10Z","lastAt":"2011-12-17T00:57:00Z","messageCount":3,"participants":["Michael Horowitz","Luke Diamand"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"181301","messageId":"CAFLRbori1Dinc2epputWfjgCOWp7M2f=+TA0w2jHq_fmRC=y3w@mail.gmail.com","threadId":"29183","inReplyTo":null,"subject":"git-p4 using notes","fromName":"Michael Horowitz","fromEmail":"michael.horowitz@ieee.org","sentAt":"2011-12-16T16:07:10Z","receivedAt":"2011-12-16T16:07:10Z","isPatch":false,"sender":{"key":"michael.horowitz@ieee.org","avatar":null},"body":"For those of you using git-p4 because of a company requirement to use\nPerforce, but really wish you could use git only, the most frustrating\npart is the fact that when changes are submitted, the commit message\nis rewritten to include a reference to the P4 change number which is\nused by the sync.  When syncing back changes, this causes the commit\nhash to be different, and so blows away your old commit and any parent\ncommit references and such.\n\nI read someplace, I can't remember where at this point, that if git-p4\nused notes to write the P4 change information, that would not impact\nthe commit hash, so when merging back, things would not be\noverwritten, and you can maintain branches and commit history properly\nin git.\n\nI just ran into this project, where it seems that someone has\nre-written git-p4 to use notes: https://github.com/ermshiperete/git-p4\n\nI was wondering if any of the maintainers of git-p4 has considered\nthis, and might want to leverage this work to merge into the main git\nrepo, possibly with an option to choose between the two behaviors.\n\nThanks,\n\nMike\n"},{"id":"181327","messageId":"4EEBA24F.8030103@diamand.org","threadId":"29183","inReplyTo":"CAFLRbori1Dinc2epputWfjgCOWp7M2f=+TA0w2jHq_fmRC=y3w@mail.gmail.com","subject":"Re: git-p4 using notes","fromName":"Luke Diamand","fromEmail":"luke@diamand.org","sentAt":"2011-12-16T19:55:59Z","receivedAt":"2011-12-16T19:55:59Z","isPatch":false,"sender":{"key":"luke@diamand.org","avatar":"https://avatars.githubusercontent.com/u/5330967?v=4"},"body":"On 16/12/11 16:07, Michael Horowitz wrote:\n> For those of you using git-p4 because of a company requirement to use\n> Perforce, but really wish you could use git only, the most frustrating\n> part is the fact that when changes are submitted, the commit message\n> is rewritten to include a reference to the P4 change number which is\n> used by the sync.  When syncing back changes, this causes the commit\n> hash to be different, and so blows away your old commit and any parent\n> commit references and such.\n>\n> I read someplace, I can't remember where at this point, that if git-p4\n> used notes to write the P4 change information, that would not impact\n> the commit hash, so when merging back, things would not be\n> overwritten, and you can maintain branches and commit history properly\n> in git.\n>\n> I just ran into this project, where it seems that someone has\n> re-written git-p4 to use notes: https://github.com/ermshiperete/git-p4\n>\n> I was wondering if any of the maintainers of git-p4 has considered\n> this, and might want to leverage this work to merge into the main git\n> repo, possibly with an option to choose between the two behaviors.\n\nI'm not sure I qualify for such a grand title as maintainer, but I was \ngoing to give this a go in the new year as it would be quite useful, \nunless someone beat me to it. I want to fix some problems with labels \nfirst though.\n\nRegards!\nLuke\n"},{"id":"181359","messageId":"CAFLRboq3--JcfWb=-p-hoNMsQZ-fHS3=5dgYc-pwQy7-rGy-gQ@mail.gmail.com","threadId":"29183","inReplyTo":"4EEBA24F.8030103@diamand.org","subject":"Re: git-p4 using notes","fromName":"Michael Horowitz","fromEmail":"michael.horowitz@ieee.org","sentAt":"2011-12-17T00:57:00Z","receivedAt":"2011-12-17T00:57:00Z","isPatch":false,"sender":{"key":"michael.horowitz@ieee.org","avatar":null},"body":"That would be great.  If you need me to help test, let me know.\nUnfortunately I don't know Python and I know very little about the\ninternals of git, so I can't help much more than that...\n\nMike\n\n\n\nOn Fri, Dec 16, 2011 at 2:55 PM, Luke Diamand <luke@diamand.org> wrote:\n> On 16/12/11 16:07, Michael Horowitz wrote:\n>>\n>> For those of you using git-p4 because of a company requirement to use\n>> Perforce, but really wish you could use git only, the most frustrating\n>> part is the fact that when changes are submitted, the commit message\n>> is rewritten to include a reference to the P4 change number which is\n>> used by the sync.  When syncing back changes, this causes the commit\n>> hash to be different, and so blows away your old commit and any parent\n>> commit references and such.\n>>\n>> I read someplace, I can't remember where at this point, that if git-p4\n>> used notes to write the P4 change information, that would not impact\n>> the commit hash, so when merging back, things would not be\n>> overwritten, and you can maintain branches and commit history properly\n>> in git.\n>>\n>> I just ran into this project, where it seems that someone has\n>> re-written git-p4 to use notes: https://github.com/ermshiperete/git-p4\n>>\n>> I was wondering if any of the maintainers of git-p4 has considered\n>> this, and might want to leverage this work to merge into the main git\n>> repo, possibly with an option to choose between the two behaviors.\n>\n>\n> I'm not sure I qualify for such a grand title as maintainer, but I was going\n> to give this a go in the new year as it would be quite useful, unless\n> someone beat me to it. I want to fix some problems with labels first though.\n>\n> Regards!\n> Luke\n"}]}