aboutsummaryrefslogtreecommitdiffstats
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2018-11-18 18:06:41 +0100
committerHiltjo Posthuma <[email protected]>2018-11-18 18:06:41 +0100
commitc100c3cc30dd948c881abd96720ca4fb2ddbb82f (patch)
treedc0a17a9629ff42aa9666c803756be888a178f57 /stagit.c
parent84bb2212e86c54f67dc18cf803bd2ac6edf24804 (diff)
downloadstagit-c100c3cc30dd948c881abd96720ca4fb2ddbb82f.tar.gz
stagit-c100c3cc30dd948c881abd96720ca4fb2ddbb82f.zip
detect filetype changes in diff (for example a normal file to symlink)
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index f43801d..8a7e7fc 100644
--- 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;