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

Buggy `git log -- path` behavior

From
MDMatthew DeVore <matvore@pobox.com>
Date
Mar 15, 2023, 16:04 UTC
Message-ID
<4c02cd71-8bfc-4b6e-9ec0-3d98598a695a@app.fastmail.com>
Hello,
I think the below terminal session demonstrates a bug in git log. Notice the first git log command gives no output. Any thoughts?

~/src$ git clone http://github.com/torvalds/linux ... ~/src$ cd linux ~/src/linux$ git checkout v5.15 ~/src/linux$ cd Documentation/vm ~/src/linux/Documentation/vm$ git log -n2 --name-status --oneline -- pagemap.rst ~/src/linux/Documentation/vm$ git log -n2 --name-status --oneline -- 'pagemap.*' 1ad1335dc586 docs/admin-guide/mm: start moving here files from Documentation/vm D Documentation/vm/pagemap.rst 41ea9dd36b6b docs/vm: pagemap: change document title M Documentation/vm/pagemap.rst ~/src/linux/Documentation/vm$

Thank you, Matthew

Next: Jeff King
Message 1 of 3 in “Buggy `git log -- path` behavior”
  1. Matthew DeVoreMar 15, 2023
  2. Jeff KingMar 15, 2023
  3. Matthew DeVoreMar 17, 2023

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.