git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git log --grep missing entries?

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
May 27, 2008, 20:40 UTC
Message-ID
<20080527204032.GA26161@atjola.homenet>
In-Reply-To
<20080527202842.GA32252@foursquare.net>
On 2008.05.27 16:28:42 -0400, Chris Frey wrote:
Show 22 quoted lines
> Hi,
> 
> I ran into this the other day when I was looking at jgit's log history.
> I retested today with the latest master branch, and it does the same thing.
> 
> So... what am I doing wrong?
> 
> 	git clone git://repo.or.cz/egit/spearce.git bsd
> 	git log |grep "^Author:" | sort | uniq
> 
> 	# note the user: Thad Hughes <thadh@thad.corp.google.com>
> 
> 	# nothing appears for these commands
> 	git log --grep="thadh@thad.corp.google.com"
> 	git log --grep="google.com"
> 	git log --grep="thadh"
> 
> 	# this works
> 	git log --author="thadh@thad.corp.google.com"
> 
> 	# this works
> 	git log | grep thadh@thad.corp.google.com

--grep only works on the log message, not on the author or committer fields. As Thad's commit does not have a SoB line, --grep won't find it.

Björn
Previous: Chris Frey
Message 4 of 4 in “git log --grep missing entries?”
  1. Chris FreyMay 27, 2008
  2. Lea WiemannMay 27, 2008
  3. Chris FreyMay 27, 2008
  4. Björn SteinbrinkMay 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.