On Friday, 10 October 2014 11:18:36 UTC+2, 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
>
> and use qoutation marks to enqoute somestring1
>
> and see empty outut, no one log message found!
>
> Some lines are found in the text, others not.
> And not whole the log was scanned, only a some part.
>
> What I doing wrong?
>

I believe I've already answered your question in a previous message you 
posted <https://groups.google.com/d/msg/git-users/p5prcAZLcwE/b69wXnihWPAJ>. 
Git-log <http://git-scm.com/docs/git-log>'s *--grep* switch only searches 
commit messages not commit diffs, and the *-p* switch shows commit messages 
*and* diffs. Basically, if you run git-log <http://git-scm.com/docs/git-log> 
*without* the *-p* switch you'll see what the *--grep* switch can match... 
If "somestring1" is not in it, then you'll need to use the *-G* switch 
instead, like so:

$ git log -p -G"somestring1"

-- 
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