Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/maint-diffstat-numstat-context'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 10 Oct 2011 22:56:18 +0000
(15:56 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 10 Oct 2011 22:56:18 +0000
(15:56 -0700)
* jc/maint-diffstat-numstat-context:
diff: teach --stat/--numstat to honor -U$num
diff.c
patch
|
blob
|
history
raw
(from parent 1:
034a8a0
)
diff --git
a/diff.c
b/diff.c
index fcc0078074c364d0a4c2bd75a6d390e517eb7f87..eed227a6ace278c47a68082015d942dc2fe9cba5 100644
(file)
--- 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);
}