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