|
|
detect filetype changes in diff (for example a normal file to symlink) - stagit-gopher - static git page generator for gopher |
|
|
 |
git clone git://git.codemadness.org/stagit-gopher (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit ad04b34bd289301b0331841176e7ac1483ad8fe1 |
|
|
 |
parent 4ae2a118c3f7dd0cc7e7b81289152afbada103bc |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Fri, 23 Nov 2018 12:46:59 +0100 |
|
|
|
|
|
|
|
detect filetype changes in diff (for example a normal file to symlink) |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M stagit-gopher.c | 4 +++- |
|
|
|
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-) |
|
|
|
--- |
|
|
 |
diff --git a/stagit-gopher.c b/stagit-gopher.c |
|
|
|
@@ -163,7 +163,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; |
|
|
|
|
|