git log --grep missing entries?
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 <[email protected]>
# nothing appears for these commands git log --grep="[email protected]" git log --grep="google.com"
git log --grep="thadh"
# this works
git log --author="[email protected]"
# this works
git log | grep [email protected]
- Chris
Quoted 17 lines · Chris Frey
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.gitbsd git log |grep "^Author:" | sort | uniq# note the user: Thad Hughes <[email protected]>
# nothing appears for these commands git log --grep="[email protected]" git log --grep="google.com"
git log --grep="thadh"
Quoted 5 lines
# this works
git log --author="[email protected]"# this works
git log | grep [email protected]
--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
Quoted 4 lines · Chris Frey
# nothing appears for these commands git log --grep="[email protected]" # this works git log --author="[email protected]"
According to the man page of git-log, --grep only greps the log message, not the author. Does that help?
-- Lea
Quoted 2 lines · Lea Wiemann
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