* git log --grep missing entries?
@ 2008-05-27 20:28 Chris Frey
2008-05-27 20:36 ` Lea Wiemann
2008-05-27 20:40 ` Björn Steinbrink
0 siblings, 2 replies; 4+ messages in thread
From: Chris Frey @ 2008-05-27 20:28 UTC (permalink / raw)
To: git
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
- Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log --grep missing entries?
2008-05-27 20:28 git log --grep missing entries? Chris Frey
@ 2008-05-27 20:36 ` Lea Wiemann
2008-05-27 20:48 ` Chris Frey
2008-05-27 20:40 ` Björn Steinbrink
1 sibling, 1 reply; 4+ messages in thread
From: Lea Wiemann @ 2008-05-27 20:36 UTC (permalink / raw)
To: Chris Frey; +Cc: git
Chris Frey wrote:
> # nothing appears for these commands
> git log --grep="thadh@thad.corp.google.com"
> # this works
> git log --author="thadh@thad.corp.google.com"
According to the man page of git-log, --grep only greps the log message,
not the author. Does that help?
-- Lea
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log --grep missing entries?
2008-05-27 20:28 git log --grep missing entries? Chris Frey
2008-05-27 20:36 ` Lea Wiemann
@ 2008-05-27 20:40 ` Björn Steinbrink
1 sibling, 0 replies; 4+ messages in thread
From: Björn Steinbrink @ 2008-05-27 20:40 UTC (permalink / raw)
To: Chris Frey; +Cc: git
On 2008.05.27 16:28:42 -0400, Chris Frey wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log --grep missing entries?
2008-05-27 20:36 ` Lea Wiemann
@ 2008-05-27 20:48 ` Chris Frey
0 siblings, 0 replies; 4+ messages in thread
From: Chris Frey @ 2008-05-27 20:48 UTC (permalink / raw)
To: Lea Wiemann; +Cc: git
On Tue, May 27, 2008 at 10:36:51PM +0200, Lea Wiemann wrote:
> According to the man page of git-log, --grep only greps the log message,
> not the author. Does that help?
Doh. That would certainly explain it. Thanks!
- Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-27 20:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-27 20:28 git log --grep missing entries? Chris Frey
2008-05-27 20:36 ` Lea Wiemann
2008-05-27 20:48 ` Chris Frey
2008-05-27 20:40 ` Björn Steinbrink
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).