{"thread":{"id":"40707","subject":"git log --author=me","startedAt":"2015-11-02T13:27:20Z","lastAt":"2015-11-03T21:30:50Z","messageCount":7,"participants":["Harry Jeffery","Andreas Schwab","Junio C Hamano","Matthieu Moy","Duy Nguyen","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"272727","messageId":"563764B8.4010101@exec64.co.uk","threadId":"40707","inReplyTo":null,"subject":"git log --author=me","fromName":"Harry Jeffery","fromEmail":"harry@exec64.co.uk","sentAt":"2015-11-02T13:27:20Z","receivedAt":"2015-11-02T13:27:20Z","isPatch":false,"sender":{"key":"harry@exec64.co.uk","avatar":"https://avatars.githubusercontent.com/u/808760?v=4"},"body":"Hi,\n\nI've written a patch that allows `me` to be used as shorthand for \n$(user.name) or $(user.email) in the `--author` and `--commiter` fields.\n\nThe purpose being to make finding your own commits quicker and easier:\n     git log --author=me\n\nIs this a change that would be accepted if submitted? The only thing \nit's currently missing is unit tests.\n\nRegards,\nHarry\n"},{"id":"272741","messageId":"8737wos32p.fsf@igel.home","threadId":"40707","inReplyTo":"563764B8.4010101@exec64.co.uk","subject":"Re: git log --author=me","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2015-11-02T17:50:38Z","receivedAt":"2015-11-02T17:50:38Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Harry Jeffery <harry@exec64.co.uk> writes:\n\n> The purpose being to make finding your own commits quicker and easier:\n>     git log --author=me\n\nSince --author does a regexp search, this would most likely break\nsomeone's searches.  Better add a new option for that functionality.\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":"272742","messageId":"xmqqy4ege0p5.fsf@gitster.mtv.corp.google.com","threadId":"40707","inReplyTo":"8737wos32p.fsf@igel.home","subject":"Re: git log --author=me","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-11-02T18:05:42Z","receivedAt":"2015-11-02T18:05:42Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Andreas Schwab <schwab@linux-m68k.org> writes:\n\n> Harry Jeffery <harry@exec64.co.uk> writes:\n>\n>> The purpose being to make finding your own commits quicker and easier:\n>>     git log --author=me\n>\n> Since --author does a regexp search, this would most likely break\n> someone's searches.  Better add a new option for that functionality.\n\nI do not think it would hurt too much to add \"--mine\" to look for\n\"--author\" that matches you, but on the other hand, I am not sure\nits value outweighs the additional noise in the manual page.\n\nIt certainly does not help \"I have done this much to this project in\nthe time period, and you can look at the output of this command\nyourself to verify my claim.  Type 'git shortlog --mine' and then\npromote me this season, please!\" use case ;-)\n\nSo...\n"},{"id":"272744","messageId":"vpqsi4oi7jj.fsf@anie.imag.fr","threadId":"40707","inReplyTo":"xmqqy4ege0p5.fsf@gitster.mtv.corp.google.com","subject":"Re: git log --author=me","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2015-11-02T18:24:16Z","receivedAt":"2015-11-02T18:24:16Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n> Andreas Schwab <schwab@linux-m68k.org> writes:\n>\n>> Harry Jeffery <harry@exec64.co.uk> writes:\n>>\n>>> The purpose being to make finding your own commits quicker and easier:\n>>>     git log --author=me\n>>\n>> Since --author does a regexp search, this would most likely break\n>> someone's searches.  Better add a new option for that functionality.\n>\n> I do not think it would hurt too much to add \"--mine\" to look for\n> \"--author\" that matches you, but on the other hand, I am not sure\n> its value outweighs the additional noise in the manual page.\n\nI have a few aliases to congratulate myself for being such an awesome\ncontributor from time to time ;-):\n\n[alias]\n\tmymaster = log --oneline --author=Matthieu.Moy@imag.fr origin/master\n\nIt did require me to write these lines in my config file, but I think\nthat the trouble of writing them is smaller than the extra noise in the\nmanual page and possibly the output of `git log -h`. Having the\nshorthand \"--author=me\" would be better than \"git log --mine\" as far as\ncluttering the doc is concerned IMHO, but it's also likely to break\nsomeone's search.\n\nBTW, the output of `git log -h` is disappointing:\n\n    $ git log -h\n    usage: git log [<options>] [<revision-range>] [[--] <path>...]\n       or: git show [<options>] <object>...\n    \n        -q, --quiet           suppress diff output\n        --source              show source\n        --use-mailmap         Use mail map file\n        --decorate[=...]      decorate options\n        -L <n,m:file>         Process line range n,m in file, counting from 1\n    \nThere are far more options than this...\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"272745","messageId":"CACsJy8D83-Mg8UHA-=CPJ3z37CQTn7USjEbfO8QcU1T+=tS0Bg@mail.gmail.com","threadId":"40707","inReplyTo":"563764B8.4010101@exec64.co.uk","subject":"Re: git log --author=me","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2015-11-02T18:37:09Z","receivedAt":"2015-11-02T18:37:09Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Mon, Nov 2, 2015 at 2:27 PM, Harry Jeffery <harry@exec64.co.uk> wrote:\n> Hi,\n>\n> I've written a patch that allows `me` to be used as shorthand for\n> $(user.name) or $(user.email) in the `--author` and `--commiter` fields.\n>\n> The purpose being to make finding your own commits quicker and easier:\n>     git log --author=me\n>\n\nIt would be even cooler if it accepts mail aliases, then you can\ndefine \"me\" to your address and also have shortcuts to a few of your\nbest friends. Though as Andreas pointed out --author is not a good fit\nbecause it accepts regex, and you can't use --mine either, so more\nwork..\n-- \nDuy\n"},{"id":"272826","messageId":"56388BEC.7050207@drmicha.warpmail.net","threadId":"40707","inReplyTo":"CACsJy8D83-Mg8UHA-=CPJ3z37CQTn7USjEbfO8QcU1T+=tS0Bg@mail.gmail.com","subject":"Re: git log --author=me","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2015-11-03T10:26:52Z","receivedAt":"2015-11-03T10:26:52Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Duy Nguyen venit, vidit, dixit 02.11.2015 19:37:\n> On Mon, Nov 2, 2015 at 2:27 PM, Harry Jeffery <harry@exec64.co.uk> wrote:\n>> Hi,\n>>\n>> I've written a patch that allows `me` to be used as shorthand for\n>> $(user.name) or $(user.email) in the `--author` and `--commiter` fields.\n>>\n>> The purpose being to make finding your own commits quicker and easier:\n>>     git log --author=me\n>>\n> \n> It would be even cooler if it accepts mail aliases, then you can\n> define \"me\" to your address and also have shortcuts to a few of your\n> best friends. Though as Andreas pointed out --author is not a good fit\n> because it accepts regex, and you can't use --mine either, so more\n> work..\n> \n\nAlternatively: How about teaching git-completion to complete the\nargument to --author? Expensive, I know, but faster than typing it out\nor realising \"Michael J\" is not as unique as you think ;)\n\nMichael\n"},{"id":"272855","messageId":"xmqq1tc6db3p.fsf@gitster.mtv.corp.google.com","threadId":"40707","inReplyTo":"56388BEC.7050207@drmicha.warpmail.net","subject":"Re: git log --author=me","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-11-03T21:30:50Z","receivedAt":"2015-11-03T21:30:50Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Michael J Gruber <git@drmicha.warpmail.net> writes:\n\n> Alternatively: How about teaching git-completion to complete the\n> argument to --author? Expensive, I know, but faster than typing it out\n> or realising \"Michael J\" is not as unique as you think ;)\n\nOr\n\n    $ git log --author=\"$me\"\n\nwith\n\n    me='Michael J Gruber <git@drmicha.warpmail.net>'\n\nin your $HOME/.profile or somewhere?\n\nI personally would find \"--author=me\" not so bad (especially if\nfinding _my_ work were a very important workflow element), and I may\neven tell people to do\n\n    $ git log --author='[m]e'\n\nif they want to find anybody with substring 'me' in their ident.\n\nBut that is only if it weren't for existing users, and we live in an\nimperfect world where we seem to have many of existing users\nalready.\n"}]}