On Friday, October 10, 2014 2:18:36 AM UTC-7, Marat Shakurov wrote:
> I doing:
> git log -p
> and see that optput contains string '*somestring1*'
> I doing:
> git log -p --grep=somestring1
> or
> git log -p --grep=somestring1 -i
> or
> git log -p --grep=somestring1 -i F

Are you searching for 'sometstring1' in the commit message, or in the 
commit diff?  Note that git log -p shows the patch,  but git log 
--grep=PATTERN searches the commit message only.  You can use `git log -G` 
or `git log -S` to search the change content itself.

>From https://www.kernel.org/pub/software/scm/git/docs/git-log.html:


Look for differences that introduce or remove an instance of <string>. Note 
that this is different than the string simply appearing in diff output; see 
the *pickaxe* entry in gitdiffcore(7) 
<https://www.kernel.org/pub/software/scm/git/docs/gitdiffcore.html> for 
more details. 

Look for differences whose added or removed line matches the given <regex>. 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to