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

git log -- <old path> not working

From
VSVille Syrjälä <ville.syrjala@linux.intel.com>
Date
Jun 15, 2020, 21:25 UTC
Message-ID
<20200615212521.GT6112@intel.com>
Hi,

Just ran into a strange case with the Linux kernel repo when trying to look up the history for a file that was later renamed.

$ git log -- drivers/acpi/configfs.c -> nothing

$ git log --follow -- drivers/acpi/configfs.c $ git log --full-history -- drivers/acpi/configfs.c -> works

First time I've seen this fail. Expected behaviour for some reason, or a bug?

$ git --version git version 2.26.2

-- 
Ville Syrjälä
Intel
Next: Junio C Hamano
Message 1 of 2 in “git log -- <old path> not working”
  1. Ville SyrjäläJun 15, 2020
  2. Junio C HamanoJun 17, 2020

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.