From: Junio C Hamano Date: Wed, 20 Jan 2016 22:47:05 GMT Subject: Re: [PATCH 3/7] diff: add --rename-file Message-ID: In-Reply-To: <1453287968-26000-4-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > 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?