stagit

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

commit
c100c3cc30dd948c881abd96720ca4fb2ddbb82f
parent
84bb2212e86c54f67dc18cf803bd2ac6edf24804
Author
Hiltjo Posthuma <hiltjo@codemadness.org>
Date
2018-11-18 17:06
detect filetype changes in diff (for example a normal file to symlink)

Diffstat

M stagit.c 4 +++-

1 files changed, 3 insertions, 1 deletions


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

@@ -114,7 +114,9 @@ commitinfo_getstats(struct commitinfo *ci)
  114   114 	}
  115   115 
  116   116 	git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION);
  117    -1 	opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH;
   -1   117 	opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH |
   -1   118 	              GIT_DIFF_IGNORE_SUBMODULES |
   -1   119 		      GIT_DIFF_INCLUDE_TYPECHANGE;
  118   120 	if (git_diff_tree_to_tree(&(ci->diff), repo, ci->parent_tree, ci->commit_tree, &opts))
  119   121 		goto err;
  120   122