On Friday, 10 October 2014 11:01:03 UTC+2, Marat Shakurov wrote:
> how I can find a 'string' in a whole log of the project's commits
> I know there is:
> git log -p --grep=<string>
> and some options
> I don't know as correctly it to use
> I absolutely know, that the log of my project contains the string '
> *somestring1*', but those commands does not have any output:
> git log -p --grep=somestring1
> git log -p --grep='somestring1'
> git log -p --grep='somestring1' -i
> git log -p --grep='somestring1' -i -F
> git log -p --grep='somestring1' -F
> What I doing wrong?
Git-log's --grep switch only searches commit messages, not commit diffs. To 
look for a specific string in commit diffs, use the -G switch. Check git-log's 
man page <http://git-scm.com/docs/git-log> or my answer to this SO post 
<http://stackoverflow.com/a/26337538/1752536> for more infos.

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