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

git log -M -- filename is not working?

From
ESEugene Sajine <euguess@gmail.com>
Date
May 7, 2010, 18:07 UTC
Message-ID
<z2w76c5b8581005071107w79d30963g725269febe746f0@mail.gmail.com>
Hi!
I tried it in both git 1.6.5.6 and git 1.7.0.5
The file has been moved:

From Src/folder1/folder2/File.java

To src/main/java/folder1/folder2/File.java

I don’t think it is relevant but just in case: The author has committed the new file first, then the commit was amended with the deletion of the source file. So we ended up with the rename correctly detected.

Now $ git log –M -- src/main/java/folder1/folder2/File.java

Shows only one last commit and doesn’t show the history when the file was in source folder. Same thing happens with

$ git log –C  -- src/main/java/folder1/folder2/File.java
What gives?

Thanks, Eugene

Next: Jacob Helwig
Message 1 of 26 in “git log -M -- filename is not working?”
  1. Eugene SajineMay 7, 2010
  2. Jacob HelwigMay 7, 2010
  3. Eugene SajineMay 7, 2010
  4. Eli BarzilayMay 7, 2010
  5. Matthieu MoyMay 7, 2010
  6. Jakub NarebskiMay 7, 2010
  7. Jeff KingMay 8, 2010
  8. Eli BarzilayMay 8, 2010
  9. Jeff KingMay 8, 2010
  10. Junio C HamanoMay 8, 2010
  11. Eli BarzilayMay 8, 2010
  12. Jeff KingMay 12, 2010
  13. Eli BarzilayMay 12, 2010
  14. Jeff KingMay 12, 2010
  15. Jeff KingMay 12, 2010
  16. Eli BarzilayMay 12, 2010
  17. Bo YangMay 12, 2010
  18. Jeff KingMay 12, 2010
  19. Bo YangMay 13, 2010
  20. Eli BarzilayMay 13, 2010
  21. Jeff KingMay 14, 2010
  22. Eli BarzilayMay 14, 2010
  23. Bo YangMay 12, 2010
  24. Jeff KingMay 12, 2010
  25. Eli BarzilayMay 12, 2010
  26. Bo YangMay 12, 2010

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.