git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git log command doesn't run as expected.

From
周周应天 <zhoudao200@126.com>
Date
Jul 10, 2018, 11:16 UTC
Message-ID
<F261A512-F38D-45F2-8F4F-A932B9BEA6A1@126.com>
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!
Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “Git log command doesn't run as expected.”
  1. 周应天Jul 10, 2018
  2. Ævar Arnfjörð BjarmasonJul 10, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.