summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-11-01 16:10:56 -0700
committerJunio C Hamano <gitster@pobox.com>2011-11-01 16:10:56 -0700
commiteee947fb95dfa160d924824518dbfcb350c10aa5 (patch)
tree02453e85c4c78cb4fb2a35557c86ac47dafdb468 /diff.c
parentdddc411f7abbd82f6fa7d323711b8a7b94a1abc2 (diff)
parentf01cae918feb564da8c7a286b32c7c917599acdd (diff)
downloadgit-eee947fb95dfa160d924824518dbfcb350c10aa5.tar.gz
Merge branch 'jc/maint-diffstat-numstat-context' into maint
* jc/maint-diffstat-numstat-context: diff: teach --stat/--numstat to honor -U$num
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index 977ca7125b..d922b77aef 100644
--- a/diff.c
+++ b/diff.c
@@ -2274,6 +2274,8 @@ static void builtin_diffstat(const char *name_a, const char *name_b,
memset(&xpp, 0, sizeof(xpp));
memset(&xecfg, 0, sizeof(xecfg));
xpp.flags = o->xdl_opts;
+ xecfg.ctxlen = o->context;
+ xecfg.interhunkctxlen = o->interhunkcontext;
xdi_diff_outf(&mf1, &mf2, diffstat_consume, diffstat,
&xpp, &xecfg);
}