Git log command doesn't run as expected.

2 messages, 2 authors, 2018-07-10 · open the first message on its own page

Git log command doesn't run as expected.

From: 周应天 <hidden>
Date: 2018-07-10 11:16:30

Hi,
	I’m using following command to do some search work:
	git log --all -G 'some regexp' -p — path/to/my/file.
But the output could miss some commit. (For example, I grep a little piece of code from a commit diff message(properly handled for regexp), but when I use the command above to search that code, I could not get that commit.)
	I wonder that it is because I use it in a wrong way? Then what should I do to correct it.

																							Thanks!

Re: Git log command doesn't run as expected.

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2018-07-10 12:18:37

On Tue, Jul 10, 2018 at 1:16 PM, 周应天 [off-list ref] wrote:
Hi,
        I’m using following command to do some search work:
        git log --all -G 'some regexp' -p — path/to/my/file.
But the output could miss some commit. (For example, I grep a little piece of code from a commit diff message(properly handled for regexp), but when I use the command above to search that code, I could not get that commit.)
        I wonder that it is because I use it in a wrong way? Then what should I do to correct it.
Have you tried with --full-history? Does that find what you're looking for?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help