Thread (9 messages) flat view 9 messages, 6 authors, 2016-06-15

Re: git log -M -- filename is not working?

From: Jacob Helwig <hidden>
Date: 2016-06-15 22:48:46

On Fri, May 7, 2010 at 11:07, Eugene Sajine [off-list ref] wrote:
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
You want the --follow flag, too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help