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

git-log --full-history renamed-file

From
Jim Meyering <jim@meyering.net>
Date
Mar 9, 2007, 21:30 UTC
Message-ID
<87lki6umts.fsf@rho.meyering.net>
Hello,

Is there some git-log-like command (or some git-log option) to print a log of deltas affecting a file across renames?

I know that git-annotate can detect renames (and gitk), but that's not quite the interface I was looking for.

I've tried with git-log --full-history, with and without --parents, to no avail. Adding --parents does make it produce a couple more log entries, but they are not relevant.

The "Why does git not track renames?" section in the wiki, http://git.or.cz/gitwiki/Godfry says that "git-log -M" will do what I want, but that appears to have no effect.

To be precise, I'd like to run a command like this
  git-log <options> current-name

to summarize the commits affecting current-name as well as those affecting old-name (which I git-mv'd to current-name).

Jim
Next: Linus Torvalds
Message 1 of 8 in “git-log --full-history renamed-file”
  1. Jim MeyeringMar 9, 2007
  2. Linus TorvaldsMar 9, 2007
  3. Junio C HamanoMar 10, 2007
  4. Jakub NarebskiMar 10, 2007
  5. Junio C HamanoMar 10, 2007
  6. Linus TorvaldsMar 10, 2007
  7. Andy ParkinsMar 10, 2007
  8. Junio C HamanoMar 10, 2007

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.