Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff: teach --stat/--numstat to honor -U$num
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 9a5c77c13ff3406a85e8a94f309a639529f2d88b..d442c66e961a614280b2a49f23d4cf89a878c0e2 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-2096,6
+2096,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);
}