idon't use a heuristic for renames, the content must match exactly - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 89e38eb68278966aee0d5597a683a299af2484b1 /scm/stagit-gopher/commit/89e38eb68278966aee0d5597a683a299af2484b1.gph bitreich.org 70 1parent ad04b34bd289301b0331841176e7ac1483ad8fe1 /scm/stagit-gopher/commit/ad04b34bd289301b0331841176e7ac1483ad8fe1.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Fri, 23 Nov 2018 12:47:58 +0100 Err bitreich.org 70 i Err bitreich.org 70 idon't use a heuristic for renames, the content must match exactly Err bitreich.org 70 i Err bitreich.org 70 ithis prevents showing files as renames when most (but not all) of the file was Err bitreich.org 70 ichanged. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit-gopher.c | 4 +++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 3 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit-gopher.c b/stagit-gopher.c /scm/stagit-gopher/file/stagit-gopher.c.gph bitreich.org 70 i@@ -171,7 +171,9 @@ commitinfo_getstats(struct commitinfo *ci) Err bitreich.org 70 i Err bitreich.org 70 i if (git_diff_find_init_options(&fopts, GIT_DIFF_FIND_OPTIONS_VERSION)) Err bitreich.org 70 i goto err; Err bitreich.org 70 i- fopts.flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES; Err bitreich.org 70 i+ /* find renames and copies, exact matches (no heuristic) for renames. */ Err bitreich.org 70 i+ fopts.flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES | Err bitreich.org 70 i+ GIT_DIFF_FIND_EXACT_MATCH_ONLY; Err bitreich.org 70 i if (git_diff_find_similar(ci->diff, &fopts)) Err bitreich.org 70 i goto err; Err bitreich.org 70 i Err bitreich.org 70 .