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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 7, 2010 at 2:10 PM, Jacob Helwig <jacob.helwig@xxxxxxxxx> wrote:
> On Fri, May 7, 2010 at 11:07, Eugene Sajine <euguess@xxxxxxxxx> 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.
>

Thanks! I missed this guy. By the way it seems that --follow flag
works without -M or -C.

Are those deprecated or I'm missing the difference between three of them??

Thanks,
Eugene
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]