iset diff options - 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 6414c8b21262f201165cfa5b537b137821d18f46 /scm/stagit-gopher/commit/6414c8b21262f201165cfa5b537b137821d18f46.gph bitreich.org 70 1parent 8ea58314385412e50e01a7de917f59ce82ee21cb /scm/stagit-gopher/commit/8ea58314385412e50e01a7de917f59ce82ee21cb.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Thu, 17 Dec 2015 22:59:19 +0100 Err bitreich.org 70 i Err bitreich.org 70 iset diff options Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M urmoms.c | 5 ++++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 4 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/urmoms.c b/urmoms.c /scm/stagit-gopher/file/urmoms.c.gph bitreich.org 70 i@@ -61,6 +61,7 @@ struct commitinfo * Err bitreich.org 70 i commitinfo_getbyoid(const git_oid *id) Err bitreich.org 70 i { Err bitreich.org 70 i struct commitinfo *ci; Err bitreich.org 70 i+ git_diff_options opts; Err bitreich.org 70 i int error; Err bitreich.org 70 i Err bitreich.org 70 i if (!(ci = calloc(1, sizeof(struct commitinfo)))) Err bitreich.org 70 i@@ -88,7 +89,9 @@ commitinfo_getbyoid(const git_oid *id) Err bitreich.org 70 i ci->parent_tree = NULL; Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i- if ((error = git_diff_tree_to_tree(&(ci->diff), repo, ci->parent_tree, ci->commit_tree, NULL))) 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+ if ((error = 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 if (git_diff_get_stats(&(ci->stats), ci->diff)) Err bitreich.org 70 i goto err; Err bitreich.org 70 .