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