| tset diff options - stagit - static git page generator | |
| git clone git://src.adamsgaard.dk/stagit | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 6414c8b21262f201165cfa5b537b137821d18f46 | |
| parent 8ea58314385412e50e01a7de917f59ce82ee21cb | |
| Author: Hiltjo Posthuma <[email protected]> | |
| Date: Thu, 17 Dec 2015 22:59:19 +0100 | |
| set diff options | |
| Diffstat: | |
| M urmoms.c | 5 ++++- | |
| 1 file changed, 4 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/urmoms.c b/urmoms.c | |
| t@@ -61,6 +61,7 @@ struct commitinfo * | |
| commitinfo_getbyoid(const git_oid *id) | |
| { | |
| struct commitinfo *ci; | |
| + git_diff_options opts; | |
| int error; | |
| if (!(ci = calloc(1, sizeof(struct commitinfo)))) | |
| t@@ -88,7 +89,9 @@ commitinfo_getbyoid(const git_oid *id) | |
| ci->parent_tree = NULL; | |
| } | |
| - if ((error = git_diff_tree_to_tree(&(ci->diff), repo, ci->parent_tree,… | |
| + git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION); | |
| + opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH; | |
| + if ((error = git_diff_tree_to_tree(&(ci->diff), repo, ci->parent_tree,… | |
| goto err; | |
| if (git_diff_get_stats(&(ci->stats), ci->diff)) | |
| goto err; |