mirror of
git://git.codemadness.org/stagit
synced 2025-03-09 09:09:12 -04:00
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.
This commit is contained in:
parent
c100c3cc30
commit
608593b0f8
4
stagit.c
4
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user