Re: Directory renames without breaking git log.

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

 



Kai Blin <kai@xxxxxxxxx> writes:

> On Thursday 04 September 2008 02:16:24 Tarmigan wrote:
>> On Wed, Sep 3, 2008 at 2:38 PM, Kai Blin <kai@xxxxxxxxx> wrote:
>> > Unfortunately, the directories are big enough that git log stops to track
>> > the renamed files, so e.g. git log ./samba3 does not show the samba3
>> > history. The history is not lost, of course, but it's way less intuitive
>> > to get it.
>>
>> You can try setting diff.renamelimit to 0 in your ~/.gitconfig.  See
>> Linus's email here for a similar situation in the kernel:
>> http://lwn.net/Articles/292948/
>
> That doesn't seem to fix "git log path/to/file" cases. The really interesting 
> part is that if I try git log --follow -M -C path/to/file, I don't get any 
> history at all. (--follow is the culprit, if I remove that I at least get the 
> merge commit)
>
> git blame still works, and git log --sparse path/to/file works, of 
> course. --sparse makes giving a path a bit pointless, of course, but we 
> probably can live with that for time being. I'm still open for suggestions, 
> of course. :)

Give both directories, like:

	"git log -- newdir olddir"

perhaps?
--
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]

  Powered by Linux