Re: Intensive rename detection
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Nov 4, 2008, 04:22 UTC
- Message-ID
- <alpine.LFD.2.00.0811032021210.3419@nehalem.linux-foundation.org>
- In-Reply-To
- <216e54900811031718o4cc81294sc0c32be1e71b9372@mail.gmail.com>
On Mon, 3 Nov 2008, Andrew Arnott wrote:
Show 8 quoted lines
> > I'm refactoring a library including renaming both files and > directories. A few lines of each file are also changed, but they are > substantially unchanged in content. I've done a git add to put all my > changes into the index, but a git status shows that git only detected > a few of the renames... most of them are delete-add operations. Is > there anything I can do to help git recognize the rename so that > history is preserved across this commit?
How many renames do you have? Modern versions of git will do any number of exact renames, but the (rather expensive) inexact rename detection has a default limit of something fairly small.
You could try adding
[diff] renamelimit=0
to your ~/.gitconfig file. It can be quite expensive though.
Linus