Re: How to fork a file (git cp ?)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 8, 2011, 20:03 UTC
- Message-ID
- <7vd3jtrmdk.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4DC6F1C8.8040007@pcharlan.com>
Pete Harlan <pgit@pcharlan.com> writes:
> Rename detection compares new files against deleted files. Copy > detection compares new files against every file in the tree, which is > usually much more costly.
Almost correct. Copy detection usually compares new paths with paths modified in the same commit. "Every file in the tree" is done only when you ask to find copies harder.