idetect filetype changes in diff (for example a normal file to symlink) - stagit-gemini - Stagit for gemini protocol Openbsd Err thinkerwim.openbsd.amsterdam 70 hgit clone git://thinkerwim.org/stagit-gemini.git URL:git://thinkerwim.org/stagit-gemini.git thinkerwim.org 70 1Log /git/stagit-gemini/log.gph thinkerwim.org 70 1Files /git/stagit-gemini/files.gph thinkerwim.org 70 1Refs /git/stagit-gemini/refs.gph thinkerwim.org 70 1README /git/stagit-gemini/file/README.gph thinkerwim.org 70 1LICENSE /git/stagit-gemini/file/LICENSE.gph thinkerwim.org 70 i--- Err thinkerwim.openbsd.amsterdam 70 1commit ad04b34bd289301b0331841176e7ac1483ad8fe1 /git/stagit-gemini/commit/ad04b34bd289301b0331841176e7ac1483ad8fe1.gph thinkerwim.org 70 1parent 4ae2a118c3f7dd0cc7e7b81289152afbada103bc /git/stagit-gemini/commit/4ae2a118c3f7dd0cc7e7b81289152afbada103bc.gph thinkerwim.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org thinkerwim.org 70 iDate: Fri, 23 Nov 2018 12:46:59 +0100 Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 idetect filetype changes in diff (for example a normal file to symlink) Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 iDiffstat: Err thinkerwim.openbsd.amsterdam 70 i M stagit-gopher.c | 4 +++- Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i1 file changed, 3 insertions(+), 1 deletion(-) Err thinkerwim.openbsd.amsterdam 70 i--- Err thinkerwim.openbsd.amsterdam 70 1diff --git a/stagit-gopher.c b/stagit-gopher.c /git/stagit-gemini/file/stagit-gopher.c.gph thinkerwim.org 70 i@@ -163,7 +163,9 @@ commitinfo_getstats(struct commitinfo *ci) Err thinkerwim.openbsd.amsterdam 70 i } Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION); Err thinkerwim.openbsd.amsterdam 70 i- opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH; Err thinkerwim.openbsd.amsterdam 70 i+ opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH | Err thinkerwim.openbsd.amsterdam 70 i+ GIT_DIFF_IGNORE_SUBMODULES | Err thinkerwim.openbsd.amsterdam 70 i+ GIT_DIFF_INCLUDE_TYPECHANGE; Err thinkerwim.openbsd.amsterdam 70 i if (git_diff_tree_to_tree(&(ci->diff), repo, ci->parent_tree, ci->commit_tree, &opts)) Err thinkerwim.openbsd.amsterdam 70 i goto err; Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 .