{"thread":{"id":"13695","subject":"git log --grep missing entries?","startedAt":"2008-05-27T20:28:42Z","lastAt":"2008-05-27T20:48:48Z","messageCount":4,"participants":["Chris Frey","Lea Wiemann","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77885","messageId":"20080527202842.GA32252@foursquare.net","threadId":"13695","inReplyTo":null,"subject":"git log --grep missing entries?","fromName":"Chris Frey","fromEmail":"cdfrey@foursquare.net","sentAt":"2008-05-27T20:28:42Z","receivedAt":"2008-05-27T20:28:42Z","isPatch":false,"sender":{"key":"cdfrey@foursquare.net","avatar":null},"body":"Hi,\n\nI ran into this the other day when I was looking at jgit's log history.\nI retested today with the latest master branch, and it does the same thing.\n\nSo... what am I doing wrong?\n\n\tgit clone git://repo.or.cz/egit/spearce.git bsd\n\tgit log |grep \"^Author:\" | sort | uniq\n\n\t# note the user: Thad Hughes <thadh@thad.corp.google.com>\n\n\t# nothing appears for these commands\n\tgit log --grep=\"thadh@thad.corp.google.com\"\n\tgit log --grep=\"google.com\"\n\tgit log --grep=\"thadh\"\n\n\t# this works\n\tgit log --author=\"thadh@thad.corp.google.com\"\n\n\t# this works\n\tgit log | grep thadh@thad.corp.google.com\n\n- Chris\n"},{"id":"77887","messageId":"483C70E3.3060607@gmail.com","threadId":"13695","inReplyTo":"20080527202842.GA32252@foursquare.net","subject":"Re: git log --grep missing entries?","fromName":"Lea Wiemann","fromEmail":"lewiemann@gmail.com","sentAt":"2008-05-27T20:36:51Z","receivedAt":"2008-05-27T20:36:51Z","isPatch":false,"sender":{"key":"lewiemann@gmail.com","avatar":null},"body":"Chris Frey wrote:\n> \t# nothing appears for these commands\n> \tgit log --grep=\"thadh@thad.corp.google.com\"\n> \t# this works\n> \tgit log --author=\"thadh@thad.corp.google.com\"\n\nAccording to the man page of git-log, --grep only greps the log message, \nnot the author.  Does that help?\n\n-- Lea\n"},{"id":"77888","messageId":"20080527204032.GA26161@atjola.homenet","threadId":"13695","inReplyTo":"20080527202842.GA32252@foursquare.net","subject":"Re: git log --grep missing entries?","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-05-27T20:40:32Z","receivedAt":"2008-05-27T20:40:32Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.05.27 16:28:42 -0400, Chris Frey wrote:\n> Hi,\n> \n> I ran into this the other day when I was looking at jgit's log history.\n> I retested today with the latest master branch, and it does the same thing.\n> \n> So... what am I doing wrong?\n> \n> \tgit clone git://repo.or.cz/egit/spearce.git bsd\n> \tgit log |grep \"^Author:\" | sort | uniq\n> \n> \t# note the user: Thad Hughes <thadh@thad.corp.google.com>\n> \n> \t# nothing appears for these commands\n> \tgit log --grep=\"thadh@thad.corp.google.com\"\n> \tgit log --grep=\"google.com\"\n> \tgit log --grep=\"thadh\"\n> \n> \t# this works\n> \tgit log --author=\"thadh@thad.corp.google.com\"\n> \n> \t# this works\n> \tgit log | grep thadh@thad.corp.google.com\n\n--grep only works on the log message, not on the author or committer\nfields. As Thad's commit does not have a SoB line, --grep won't find it.\n\nBjörn\n"},{"id":"77890","messageId":"20080527204848.GA13929@foursquare.net","threadId":"13695","inReplyTo":"483C70E3.3060607@gmail.com","subject":"Re: git log --grep missing entries?","fromName":"Chris Frey","fromEmail":"cdfrey@foursquare.net","sentAt":"2008-05-27T20:48:48Z","receivedAt":"2008-05-27T20:48:48Z","isPatch":false,"sender":{"key":"cdfrey@foursquare.net","avatar":null},"body":"On Tue, May 27, 2008 at 10:36:51PM +0200, Lea Wiemann wrote:\n> According to the man page of git-log, --grep only greps the log message, \n> not the author.  Does that help?\n\nDoh.  That would certainly explain it.  Thanks!\n\n- Chris\n"}]}