Introduction
Introduction Statistics Contact Development Disclaimer Help
don't use a heuristic for renames, the content must match exactly - stagit - st…
git clone git://git.codemadness.org/stagit
Log
Files
Refs
README
LICENSE
---
commit 608593b0f875012875f13d28fbccd533d1266fd2
parent c100c3cc30dd948c881abd96720ca4fb2ddbb82f
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 18 Nov 2018 18:07:22 +0100
don't use a heuristic for renames, the content must match exactly
this prevents showing files as renames when most (but not all) of the file was
changed.
Diffstat:
M stagit.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/stagit.c b/stagit.c
@@ -122,7 +122,9 @@ commitinfo_getstats(struct commitinfo *ci)
if (git_diff_find_init_options(&fopts, GIT_DIFF_FIND_OPTIONS_VERSION))
goto err;
- fopts.flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES;
+ /* find renames and copies, exact matches (no heuristic) for renames. …
+ fopts.flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES |
+ GIT_DIFF_FIND_EXACT_MATCH_ONLY;
if (git_diff_find_similar(ci->diff, &fopts))
goto err;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.