{"thread":{"id":"14707","subject":"Cleaning up log messages","startedAt":"2008-07-27T17:50:58Z","lastAt":"2008-07-27T20:52:07Z","messageCount":10,"participants":["Jon Smirl","Johannes Schindelin","Petr Baudis","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"85182","messageId":"9e4733910807271050y7fb5f77coec05bd68421baaab@mail.gmail.com","threadId":"14707","inReplyTo":null,"subject":"Cleaning up log messages","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2008-07-27T17:50:58Z","receivedAt":"2008-07-27T17:50:58Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"I was playing around with git log for the kernel and observed that\nthere is a lot of noise when trying to do statistics on the number of\ncommits.\n\nFor example:\n\nAuthor: Greg K-H <gregkh@suse.de>\nAuthor: Greg KH <gregkh@suse.de>\nAuthor: Greg KH <greg@kroah.com>\nAuthor: Greg KH <greg@press.(none)>\nAuthor: gregkh@suse.de <gregkh@suse.de>\nAuthor: Greg Kroah-Hartman <gregkh@suse>\nAuthor: Greg Kroah-Hartman <gregkh@suse.de>\nAuthor: Greg Kroah-Hartman <greg@kroah.com>\n\nI don't see an obvious way to do this with git, but it would be neat\nto have a 'clean' option on git log that would take each email address\n(author, signed-off, acked, etc) and map it through a table which\nwould convert old email addresses in to the current one and also\nstandardize the formatting of the names. A cleaned log would be\naltered on display, but just don't clean it if you want the original.\n\nOf course this initial map would need to be built by hand. New commits\ncould be checked against the map and the mapped updated if the person\nreally has a new email address. Checking new commits against the map\nwould help clean things up going forward. checkpatch.pl could also\nvalidate against the mapping file.\n\nNo pressing need to for this, it would just be a nice toy.\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"85183","messageId":"alpine.DEB.1.00.0807272000270.5526@eeepc-johanness","threadId":"14707","inReplyTo":"9e4733910807271050y7fb5f77coec05bd68421baaab@mail.gmail.com","subject":"Re: Cleaning up log messages","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-07-27T18:01:37Z","receivedAt":"2008-07-27T18:01:37Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 27 Jul 2008, Jon Smirl wrote:\n\n> I was playing around with git log for the kernel and observed that there \n> is a lot of noise when trying to do statistics on the number of commits.\n> \n> For example:\n> \n> Author: Greg K-H <gregkh@suse.de>\n> Author: Greg KH <gregkh@suse.de>\n> Author: Greg KH <greg@kroah.com>\n> Author: Greg KH <greg@press.(none)>\n> Author: gregkh@suse.de <gregkh@suse.de>\n> Author: Greg Kroah-Hartman <gregkh@suse>\n> Author: Greg Kroah-Hartman <gregkh@suse.de>\n> Author: Greg Kroah-Hartman <greg@kroah.com>\n> \n> I don't see an obvious way to do this with git, but it would be neat\n> to have a 'clean' option on git log that would take each email address\n> (author, signed-off, acked, etc) and map it through a table which\n> would convert old email addresses in to the current one and also\n> standardize the formatting of the names.\n\nSomething like .mailmap?\n\nAnd to show the mapped author name instead of the committed one, you would \nuse \"--pretty=format:%aN\"?  (Needs 1.6.0-rc0 at least, IIRC)\n\nCiao,\nDscho\n"},{"id":"85185","messageId":"9e4733910807271116q29323664l8d44fdded1de8c8e@mail.gmail.com","threadId":"14707","inReplyTo":"alpine.DEB.1.00.0807272000270.5526@eeepc-johanness","subject":"Re: Cleaning up log messages","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2008-07-27T18:16:30Z","receivedAt":"2008-07-27T18:16:30Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/27/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n>\n>  On Sun, 27 Jul 2008, Jon Smirl wrote:\n>\n>  > I was playing around with git log for the kernel and observed that there\n>  > is a lot of noise when trying to do statistics on the number of commits.\n>  >\n>  > For example:\n>  >\n>  > Author: Greg K-H <gregkh@suse.de>\n>  > Author: Greg KH <gregkh@suse.de>\n>  > Author: Greg KH <greg@kroah.com>\n>  > Author: Greg KH <greg@press.(none)>\n>  > Author: gregkh@suse.de <gregkh@suse.de>\n>  > Author: Greg Kroah-Hartman <gregkh@suse>\n>  > Author: Greg Kroah-Hartman <gregkh@suse.de>\n>  > Author: Greg Kroah-Hartman <greg@kroah.com>\n>  >\n>  > I don't see an obvious way to do this with git, but it would be neat\n>  > to have a 'clean' option on git log that would take each email address\n>  > (author, signed-off, acked, etc) and map it through a table which\n>  > would convert old email addresses in to the current one and also\n>  > standardize the formatting of the names.\n>\n>\n> Something like .mailmap?\n>\n>  And to show the mapped author name instead of the committed one, you would\n>  use \"--pretty=format:%aN\"?  (Needs 1.6.0-rc0 at least, IIRC)\n\nSo we can already do this? Where is a .mailmap for the kernel tree?\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"85187","messageId":"20080727183309.GD32184@machine.or.cz","threadId":"14707","inReplyTo":"9e4733910807271116q29323664l8d44fdded1de8c8e@mail.gmail.com","subject":"Re: Cleaning up log messages","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2008-07-27T18:33:09Z","receivedAt":"2008-07-27T18:33:09Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Sun, Jul 27, 2008 at 02:16:30PM -0400, Jon Smirl wrote:\n> On 7/27/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> > Something like .mailmap?\n> >\n> >  And to show the mapped author name instead of the committed one, you would\n> >  use \"--pretty=format:%aN\"?  (Needs 1.6.0-rc0 at least, IIRC)\n> \n> So we can already do this? Where is a .mailmap for the kernel tree?\n\n\thttp://repo.or.cz/w/linux-2.6.git?a=blob;f=.mailmap\n\n...right there. :-)\n\n\t\t\t\tPetr \"Pasky\" Baudis\n"},{"id":"85188","messageId":"7vsktv17wc.fsf@gitster.siamese.dyndns.org","threadId":"14707","inReplyTo":"9e4733910807271050y7fb5f77coec05bd68421baaab@mail.gmail.com","subject":"Re: Cleaning up log messages","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-07-27T18:47:31Z","receivedAt":"2008-07-27T18:47:31Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Jon Smirl\" <jonsmirl@gmail.com> writes:\n\n> I was playing around with git log for the kernel and observed that\n> there is a lot of noise when trying to do statistics on the number of\n> commits.\n>\n> For example:\n>\n> Author: Greg K-H <gregkh@suse.de>\n> Author: Greg KH <gregkh@suse.de>\n> ...\n> Author: Greg Kroah-Hartman <greg@kroah.com>\n\nWe have had .mailmap since a24e658 (git-shortlog: make the mailmap\nconfigurable., 2005-10-06); maybe the kernel tree wants a maintainer for\nthe .mailmap file?\n"},{"id":"85190","messageId":"9e4733910807271207o2e18cef1h869c659bd0ae31ba@mail.gmail.com","threadId":"14707","inReplyTo":"20080727183309.GD32184@machine.or.cz","subject":"Re: Cleaning up log messages","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2008-07-27T19:07:24Z","receivedAt":"2008-07-27T19:07:24Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/27/08, Petr Baudis <pasky@suse.cz> wrote:\n> On Sun, Jul 27, 2008 at 02:16:30PM -0400, Jon Smirl wrote:\n>  > On 7/27/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n>\n> > > Something like .mailmap?\n>  > >\n>  > >  And to show the mapped author name instead of the committed one, you would\n>  > >  use \"--pretty=format:%aN\"?  (Needs 1.6.0-rc0 at least, IIRC)\n>  >\n>  > So we can already do this? Where is a .mailmap for the kernel tree?\n>\n>\n>         http://repo.or.cz/w/linux-2.6.git?a=blob;f=.mailmap\n>\n>  ...right there. :-)\n\nI updated to 1.6.0-rc0 and this is working. mailmap needs some\ncleanup. Errors are still in the list, but this is a lot better than\nit was. That made about 800 'contributors' disappear.\n\nIs there a way to do short log and have it map the names? What about\nreplacing the emails with their current email address?\n\nRandom missing entries....\nGreg KH\nGreg Kroah-Hartman\n\nHans J Koch\nHans J. Koch\n\nJean-Christophe Dubois\nJean-Christophe DUBOIS\n\nMiguel Boton\nMiguel Botón\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"85191","messageId":"alpine.DEB.1.00.0807272116030.5526@eeepc-johanness","threadId":"14707","inReplyTo":"9e4733910807271207o2e18cef1h869c659bd0ae31ba@mail.gmail.com","subject":"Re: Cleaning up log messages","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-07-27T19:20:43Z","receivedAt":"2008-07-27T19:20:43Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 27 Jul 2008, Jon Smirl wrote:\n\n> On 7/27/08, Petr Baudis <pasky@suse.cz> wrote:\n> > On Sun, Jul 27, 2008 at 02:16:30PM -0400, Jon Smirl wrote:\n> >  > On 7/27/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> >\n> > > > Something like .mailmap?\n> >  > >\n> >  > >  And to show the mapped author name instead of the committed one, you would\n> >  > >  use \"--pretty=format:%aN\"?  (Needs 1.6.0-rc0 at least, IIRC)\n> >  >\n> >  > So we can already do this? Where is a .mailmap for the kernel tree?\n> >\n> >         http://repo.or.cz/w/linux-2.6.git?a=blob;f=.mailmap\n> >\n> >  ...right there. :-)\n> \n> I updated to 1.6.0-rc0 and this is working. mailmap needs some\n> cleanup. Errors are still in the list, but this is a lot better than\n> it was. That made about 800 'contributors' disappear.\n> \n> Is there a way to do short log and have it map the names?\n\nYes, as of v1.6.0-rc0~58 you can pass --pretty=format: to shortlog.\n\n> What about replacing the emails with their current email address?\n\nNope, that was never meant to be done.\n\nCiao,\nDscho\n"},{"id":"85193","messageId":"9e4733910807271231s7ff6acf8rf5848cc1a31f3afc@mail.gmail.com","threadId":"14707","inReplyTo":"alpine.DEB.1.00.0807272116030.5526@eeepc-johanness","subject":"Re: Cleaning up log messages","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2008-07-27T19:31:26Z","receivedAt":"2008-07-27T19:31:26Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/27/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n>\n>  On Sun, 27 Jul 2008, Jon Smirl wrote:\n>\n>  > On 7/27/08, Petr Baudis <pasky@suse.cz> wrote:\n>  > > On Sun, Jul 27, 2008 at 02:16:30PM -0400, Jon Smirl wrote:\n>  > >  > On 7/27/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n>  > >\n>  > > > > Something like .mailmap?\n>  > >  > >\n>  > >  > >  And to show the mapped author name instead of the committed one, you would\n>  > >  > >  use \"--pretty=format:%aN\"?  (Needs 1.6.0-rc0 at least, IIRC)\n>  > >  >\n>  > >  > So we can already do this? Where is a .mailmap for the kernel tree?\n>  > >\n>  > >         http://repo.or.cz/w/linux-2.6.git?a=blob;f=.mailmap\n>  > >\n>  > >  ...right there. :-)\n>  >\n>  > I updated to 1.6.0-rc0 and this is working. mailmap needs some\n>  > cleanup. Errors are still in the list, but this is a lot better than\n>  > it was. That made about 800 'contributors' disappear.\n>  >\n>  > Is there a way to do short log and have it map the names?\n>\n>\n> Yes, as of v1.6.0-rc0~58 you can pass --pretty=format: to shortlog.\n\nHow do you do it with git log? --pretty overrides the default of medium\n\n--pretty[=<format>]\n\n    Pretty-print the contents of the commit logs in a given format,\nwhere <format> can be one of oneline, short, medium, full, fuller,\nemail, raw and format:<string>. When omitted, the format defaults to\nmedium.\n\n\n>\n>\n>  > What about replacing the emails with their current email address?\n>\n>\n> Nope, that was never meant to be done.\n>\n>  Ciao,\n>  Dscho\n>\n>\n\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"85198","messageId":"alpine.DEB.1.00.0807272214120.5526@eeepc-johanness","threadId":"14707","inReplyTo":"9e4733910807271231s7ff6acf8rf5848cc1a31f3afc@mail.gmail.com","subject":"Re: Cleaning up log messages","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-07-27T20:16:53Z","receivedAt":"2008-07-27T20:16:53Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 27 Jul 2008, Jon Smirl wrote:\n\n> How do you do it with git log? --pretty overrides the default of medium\n> \n> --pretty[=<format>]\n> \n>     Pretty-print the contents of the commit logs in a given format,\n> where <format> can be one of oneline, short, medium, full, fuller,\n> email, raw and format:<string>. When omitted, the format defaults to\n> medium.\n\nYou get it _almost_ with\n\n$ f='commit %H%nAuthor: %aN <%ae>%nDate:    %ad%n%n%s%n%n%b'\n$ git log --pretty=\"format:$f\"\n\nThe only difference being that the commit message is not indented.  If you \nreally need that, it is easy to add.\n\nBut I rather doubt that you need it, as you want to make statistics, and \ntherefore need to pipe the output into a script anyway.\n\nCiao,\nDscho\n"},{"id":"85203","messageId":"9e4733910807271352h67044045y7576a719d4cc80cd@mail.gmail.com","threadId":"14707","inReplyTo":"7vsktv17wc.fsf@gitster.siamese.dyndns.org","subject":"Re: Cleaning up log messages","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2008-07-27T20:52:07Z","receivedAt":"2008-07-27T20:52:07Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/27/08, Junio C Hamano <gitster@pobox.com> wrote:\n> \"Jon Smirl\" <jonsmirl@gmail.com> writes:\n>\n>  > I was playing around with git log for the kernel and observed that\n>  > there is a lot of noise when trying to do statistics on the number of\n>  > commits.\n>  >\n>  > For example:\n>  >\n>  > Author: Greg K-H <gregkh@suse.de>\n>  > Author: Greg KH <gregkh@suse.de>\n>  > ...\n>\n> > Author: Greg Kroah-Hartman <greg@kroah.com>\n>\n>\n> We have had .mailmap since a24e658 (git-shortlog: make the mailmap\n>  configurable., 2005-10-06); maybe the kernel tree wants a maintainer for\n>  the .mailmap file?\n\nThis seems to be the main problem. There are so many missing entries\nfrom the .mailmap file that I didn't think this feature was\nimplemented. I'd guestimate that 300-400 needed entries are missing.\n\nI've made a few attempts at writing a script to fix the easy ones but\nI don't have a good solution yet.\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"}]}