git-query

git data extraction tool using c and libgit2

git clone https://9o.is/git/git-query.git

commit 2146984e456e726778452bc881187b66eb68db2f
parent df14c5b29dc0965acc656d2fb69c00550e01316f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 18 Nov 2018 18:06:41 +0100

detect filetype changes in diff (for example a normal file to symlink)

Diffstat:
Mstagit.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stagit.c b/stagit.c @@ -114,7 +114,9 @@ commitinfo_getstats(struct commitinfo *ci) } git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION); - opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH; + opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH | + GIT_DIFF_IGNORE_SUBMODULES | + GIT_DIFF_INCLUDE_TYPECHANGE; if (git_diff_tree_to_tree(&(ci->diff), repo, ci->parent_tree, ci->commit_tree, &opts)) goto err;