stagit

static git page generator  https://git.ce9e.org
git clone https://git.ce9e.org/stagit.git

commit
608593b0f875012875f13d28fbccd533d1266fd2
parent
c100c3cc30dd948c881abd96720ca4fb2ddbb82f
Author
Hiltjo Posthuma <hiltjo@codemadness.org>
Date
2018-11-18 17:07
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 files changed, 3 insertions, 1 deletions


diff --git a/stagit.c b/stagit.c

@@ -122,7 +122,9 @@ commitinfo_getstats(struct commitinfo *ci)
  122   122 
  123   123 	if (git_diff_find_init_options(&fopts, GIT_DIFF_FIND_OPTIONS_VERSION))
  124   124 		goto err;
  125    -1 	fopts.flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES;
   -1   125 	/* find renames and copies, exact matches (no heuristic) for renames. */
   -1   126 	fopts.flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES |
   -1   127 	               GIT_DIFF_FIND_EXACT_MATCH_ONLY;
  126   128 	if (git_diff_find_similar(ci->diff, &fopts))
  127   129 		goto err;
  128   130