{"thread":{"id":"43828","subject":"A bug or a feature (git diff --author + --grep)","startedAt":"2009-10-04T10:25:59Z","lastAt":"2009-10-04T13:44:33Z","messageCount":3,"participants":["Pascal Obry","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"299126","messageId":"4AC87837.2010004@obry.net","threadId":"43828","inReplyTo":null,"subject":"A bug or a feature (git diff --author + --grep)","fromName":"Pascal Obry","fromEmail":"pascal@obry.net","sentAt":"2009-10-04T10:25:59Z","receivedAt":"2009-10-04T10:25:59Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"\nI would have expected the --author and --grep option to work as pipeline \nfilters. The first on the command line being applied first.\n\nIn other word I would have expected:\n\n    --author AND --grep\n\nBut it turn out that the result are maching either --author or --grep:\n\n    --author OR --grep\n\nFor example on the Git project:\n\n    $ git log --author=obry --grep=Cygwin\n\nReturns commit from obry and commit having Cygwin in their log.\n\nIs this a bug or a feature?\n\nThanks,\nPascal.\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|    http://www.obry.net  -  http://v2p.fr.eu.org\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B\n\n"},{"id":"299127","messageId":"20091004131933.GA32000@atjola.homenet","threadId":"43828","inReplyTo":"4AC87837.2010004@obry.net","subject":"Re: A bug or a feature (git diff --author + --grep)","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2009-10-04T13:19:33Z","receivedAt":"2009-10-04T13:19:33Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2009.10.04 12:25:59 +0200, Pascal Obry wrote:\n> \n> I would have expected the --author and --grep option to work as\n> pipeline filters. The first on the command line being applied first.\n> \n> In other word I would have expected:\n> \n>    --author AND --grep\n> \n> But it turn out that the result are maching either --author or --grep:\n> \n>    --author OR --grep\n> \n> For example on the Git project:\n> \n>    $ git log --author=obry --grep=Cygwin\n> \n> Returns commit from obry and commit having Cygwin in their log.\n> \n> Is this a bug or a feature?\n\nFeature. There's --all-match to switch on AND-mode.\n\nBjörn\n"},{"id":"299128","messageId":"4AC8A6C1.9060905@obry.net","threadId":"43828","inReplyTo":"20091004131933.GA32000@atjola.homenet","subject":"Re: A bug or a feature (git diff --author + --grep)","fromName":"Pascal Obry","fromEmail":"pascal@obry.net","sentAt":"2009-10-04T13:44:33Z","receivedAt":"2009-10-04T13:44:33Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"Björn,\n\n> Feature. There's --all-match to switch on AND-mode.\n\nThanks for the quick answer, I missed the --all-macth option.\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|    http://www.obry.net  -  http://v2p.fr.eu.org\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B\n\n"}]}