{"thread":{"id":"49962","subject":"enhancement: support for author.email and author.name in \"git config\"","startedAt":"2018-12-06T18:17:44Z","lastAt":"2018-12-13T19:37:59Z","messageCount":8,"participants":["William Hubbs","Martin Ågren","Johannes Schindelin","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"364696","messageId":"20181206181739.GB30045@whubbs1.gaikai.biz","threadId":"49962","inReplyTo":null,"subject":"enhancement: support for author.email and author.name in \"git config\"","fromName":"William Hubbs","fromEmail":"williamh@gentoo.org","sentAt":"2018-12-06T18:17:39Z","receivedAt":"2018-12-06T18:17:44Z","isPatch":false,"sender":{"key":"williamh@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/64355?v=4"},"body":"Hi all,\n\nWe are in a situation where we would like to use author information that is\ndifferent from committer information when we commit to certain\nrepositories.\n\nCurrently, it looks like there are two ways to do this, and I'm not sure\nhow to make either of them work well.\n\nThere are the GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME environment\nvariables, but  these would have to be set globally. Also, there is the\n--author command line switch for the \"git commit\" command, but this is\neasy to forget to use.\n\nIs there something I'm missing?\n\nIf not, I would like to propose the addition of author.email and\nauthor.name settings to the git-config system.\n\nAdditionally you could add committer.name and committer.email, but the\nonly reason I bring the committer variations up is consistency since I\nsee you also have GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment\nvariables.\n\nDoes anyone have any thoughts on this?\n\nI don't think either of us is on the mailing list, so please keep us in\nCC's when you reply.\n\nThanks,\n\nWilliam\n"},{"id":"364698","messageId":"CAN0heSp2g0A82YYvMw-RaERESXFtj3TgPKA3RysC07Lf=tHBcg@mail.gmail.com","threadId":"49962","inReplyTo":"20181206181739.GB30045@whubbs1.gaikai.biz","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"Martin Ågren","fromEmail":"martin.agren@gmail.com","sentAt":"2018-12-06T18:38:08Z","receivedAt":"2018-12-06T18:38:22Z","isPatch":false,"sender":{"key":"martin.agren@gmail.com","avatar":null},"body":"Hi William,\n\nOn Thu, 6 Dec 2018 at 19:18, William Hubbs <williamh@gentoo.org> wrote:\n> We are in a situation where we would like to use author information that is\n> different from committer information when we commit to certain\n> repositories.\n\n[...]\n\n> [...] I would like to propose the addition of author.email and\n> author.name settings to the git-config system.\n>\n> Additionally you could add committer.name and committer.email, but the\n> only reason I bring the committer variations up is consistency since I\n> see you also have GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment\n> variables.\n\nThis idea was floated a couple of months ago [1]. Junio seemed to find\nthe request sensible and outlined a design. No patches materialized, as\nfar as I know, but that could be because Eric suggested a tool called\ndirenv. Maybe that would work for you.\n\n[1] https://public-inbox.org/git/0f66ad7a-2289-2cce-6533-a27e19945187@rasmusvillemoes.dk/\n\nMartin\n"},{"id":"364701","messageId":"20181206191737.GA31091@whubbs1.gaikai.biz","threadId":"49962","inReplyTo":"CAN0heSp2g0A82YYvMw-RaERESXFtj3TgPKA3RysC07Lf=tHBcg@mail.gmail.com","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"William Hubbs","fromEmail":"williamh@gentoo.org","sentAt":"2018-12-06T19:17:37Z","receivedAt":"2018-12-06T19:17:44Z","isPatch":false,"sender":{"key":"williamh@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/64355?v=4"},"body":"On Thu, Dec 06, 2018 at 07:38:08PM +0100, Martin Ågren wrote:\n> Hi William,\n> \n> [...]\n> \n> This idea was floated a couple of months ago [1]. Junio seemed to find\n> the request sensible and outlined a design. No patches materialized, as\n> far as I know, but that could be because Eric suggested a tool called\n> direnv. Maybe that would work for you.\n \n Yes, this design would solve the issue.\n\n I'll take a look at direnv, but it would be nice to have native git\n support for this. :-)\n\nThanks,\n\nWilliam\n\n> [1] https://public-inbox.org/git/0f66ad7a-2289-2cce-6533-a27e19945187@rasmusvillemoes.dk/\n> \n> Martin\n"},{"id":"364714","messageId":"nycvar.QRO.7.76.6.1812062318570.41@tvgsbejvaqbjf.bet","threadId":"49962","inReplyTo":"20181206191737.GA31091@whubbs1.gaikai.biz","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2018-12-06T22:20:07Z","receivedAt":"2018-12-06T22:20:33Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi William,\n\nOn Thu, 6 Dec 2018, William Hubbs wrote:\n\n> On Thu, Dec 06, 2018 at 07:38:08PM +0100, Martin Ågren wrote:\n> > Hi William,\n> > \n> > [...]\n> > \n> > This idea was floated a couple of months ago [1]. Junio seemed to find\n> > the request sensible and outlined a design. No patches materialized, as\n> > far as I know, but that could be because Eric suggested a tool called\n> > direnv. Maybe that would work for you.\n>  \n>  Yes, this design would solve the issue.\n\nThere *is* a way to get what you want that is super easy and will\ndefinitely work: if you sit down and do it ;-)\n\nPlease let us know if you need any additional information before you can\nstart.\n\nCiao,\nJohannes"},{"id":"364762","messageId":"20181207222147.GA22590@whubbs1.gaikai.biz","threadId":"49962","inReplyTo":"nycvar.QRO.7.76.6.1812062318570.41@tvgsbejvaqbjf.bet","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"William Hubbs","fromEmail":"williamh@gentoo.org","sentAt":"2018-12-07T22:21:47Z","receivedAt":"2018-12-07T22:21:53Z","isPatch":false,"sender":{"key":"williamh@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/64355?v=4"},"body":"Hi Johannes,\n\nOn Thu, Dec 06, 2018 at 11:20:07PM +0100, Johannes Schindelin wrote:\n> Hi William,\n> \n>[...]\n> \n> There *is* a way to get what you want that is super easy and will\n> definitely work: if you sit down and do it ;-)\n> \n> Please let us know if you need any additional information before you can\n> start.\n\nWhich branch should I work off of in the repo?\n\nWilliam\n"},{"id":"364770","messageId":"20181207224428.GE73340@google.com","threadId":"49962","inReplyTo":"20181207222147.GA22590@whubbs1.gaikai.biz","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2018-12-07T22:44:28Z","receivedAt":"2018-12-07T22:44:33Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"William Hubbs wrote:\n> On Thu, Dec 06, 2018 at 11:20:07PM +0100, Johannes Schindelin wrote:\n\n>> There *is* a way to get what you want that is super easy and will\n>> definitely work: if you sit down and do it ;-)\n>>\n>> Please let us know if you need any additional information before you can\n>> start.\n>\n> Which branch should I work off of in the repo?\n\n\"master\".\n\nAlso, please make sure the documentation (e.g. in\nDocumentation/config/user.txt) describes when a user would want to set\nthis option.\n\nSee also:\n- Documentation/SubmittingPatches\n- the DISCUSSION section of \"git help format-patch\"\n- [1]\n- https://www.kernel.org/pub/software/scm/git/docs/user-manual.html#hacking-git\n\nThanks,\nJonathan\n\n[1] https://github.com/gitgitgadget/gitgitgadget#a-bot-to-serve-as-glue-between-github-pull-requests-and-the-git-mailing-list\n"},{"id":"365285","messageId":"20181213192930.GA21006@whubbs1.gaikai.biz","threadId":"49962","inReplyTo":"20181207224428.GE73340@google.com","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"William Hubbs","fromEmail":"williamh@gentoo.org","sentAt":"2018-12-13T19:29:30Z","receivedAt":"2018-12-13T19:29:35Z","isPatch":false,"sender":{"key":"williamh@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/64355?v=4"},"body":"Hi Jonathan,\n\nOn Fri, Dec 07, 2018 at 02:44:28PM -0800, Jonathan Nieder wrote:\n> William Hubbs wrote:\n> > On Thu, Dec 06, 2018 at 11:20:07PM +0100, Johannes Schindelin wrote:\n> \n> >> There *is* a way to get what you want that is super easy and will\n> >> definitely work: if you sit down and do it ;-)\n> >>\n> >> Please let us know if you need any additional information before you can\n> >> start.\n> >\n> > Which branch should I work off of in the repo?\n> \n> \"master\".\n> \n> Also, please make sure the documentation (e.g. in\n> Documentation/config/user.txt) describes when a user would want to set\n> this option.\n\nIs the git team on an irc channel somewhere, or should I start sending\npatches that I know are incomplete to the list?\n\nI would like to work with someone on this since I'm not that familiar\nwith the git sources. :-)\n\nThanks,\n\nWilliam\n\n"},{"id":"365286","messageId":"20181213193754.GA7306@google.com","threadId":"49962","inReplyTo":"20181213192930.GA21006@whubbs1.gaikai.biz","subject":"Re: enhancement: support for author.email and author.name in \"git config\"","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2018-12-13T19:37:54Z","receivedAt":"2018-12-13T19:37:59Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"William Hubbs wrote:\n\n> Is the git team on an irc channel somewhere,\n\nSome like to use #git-devel on freenode.\n\n>                                              or should I start sending\n> patches that I know are incomplete to the list?\n\nYeah, that's fine.  Include [WIP/PATCH] in the subject line to set\nappropriate expectations. :)\n\nThanks,\nJonathan\n"}]}