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

Git log can not show history before rename

From
Frank Li <lznuaa@gmail.com>
Date
Jan 30, 2009, 11:23 UTC
Message-ID
<1976ea660901300323n384d3650s3bb5a575accb65d1@mail.gmail.com>

mkdir tt3 cd tt3 git init-db touch a.c git add a.c git commit -a -m "test1"

git mv a.c b.c git commit -a -m "rename"

modify b.c git commit -a -m "test2"

git log -C -M -- b.c
========================================
commit 8d55ed63d2048d41bde8c34dafc52c6a965d61ed
Author: Frank Li <lznuaa@gmail.com>
Date:   Fri Jan 30 19:20:10 2009 +0800
    test2
commit af0214f7d32cf97fda2743e7d906305e6de2e9a2
Author: Frank Li <lznuaa@gmail.com>
Date:   Fri Jan 30 19:19:15 2009 +0800
    rename
=========================================
I can't get history before rename.
Next: Santi Béjar
Message 1 of 9 in “Git log can not show history before rename”
  1. Frank LiJan 30, 2009
  2. Santi BéjarJan 30, 2009
  3. Jakub NarebskiJan 30, 2009
  4. Frank LiJan 30, 2009
  5. Santi BéjarJan 30, 2009
  6. Thomas RastJan 30, 2009
  7. Jeff KingJan 31, 2009
  8. Linus TorvaldsJan 30, 2009
  9. Linus TorvaldsJan 30, 2009

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.