Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/maint-diffstat-numstat-context' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Nov 2011 23:10:56 +0000
(16:10 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Nov 2011 23:10:56 +0000
(16:10 -0700)
* jc/maint-diffstat-numstat-context:
diff: teach --stat/--numstat to honor -U$num
diff.c
patch
|
blob
|
history
raw
(from parent 1:
dddc411
)
diff --git
a/diff.c
b/diff.c
index 977ca7125b9acc603ce6c1d27c57a75c9d21fbdf..d922b77aef2da84824a8e14fc21961e36e6d2e36 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);
}