Re: [PATCH 3/7] diff: add --rename-file
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 20, 2016, 22:47 UTC
- Message-ID
- <xmqqzivz3m3a.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1453287968-26000-4-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 9 quoted lines
> Git's heuristics to detect renames or copies works most of the time. > This option can be used to correct the result when it goes wrong. > Matching pairs get max rename score and override even exact rename > detection. > > Note that --rename-file does not try to break existing diff pairs. So > if you have "abc => def" in your file, but they are already paired up > (e.g. "abc => abc" and "def => def") and not broken down by -B, then > nothing happens.
By the way, how would this interact with "diff -R"?
Do you need to spell --rename-file in reverse before you can run the diff in reverse?