Skip to content

Commit eee947f

Browse files
committed
Merge branch 'jc/maint-diffstat-numstat-context' into maint
* jc/maint-diffstat-numstat-context: diff: teach --stat/--numstat to honor -U$num
2 parents dddc411 + f01cae9 commit eee947f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

diff.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,6 +2274,8 @@ static void builtin_diffstat(const char *name_a, const char *name_b,
22742274
memset(&xpp, 0, sizeof(xpp));
22752275
memset(&xecfg, 0, sizeof(xecfg));
22762276
xpp.flags = o->xdl_opts;
2277+
xecfg.ctxlen = o->context;
2278+
xecfg.interhunkctxlen = o->interhunkcontext;
22772279
xdi_diff_outf(&mf1, &mf2, diffstat_consume, diffstat,
22782280
&xpp, &xecfg);
22792281
}

0 commit comments

Comments
 (0)