Thread (1 message) 1 message, 1 author, 2016-06-15
DORMANTno replies

[PATCH] diff --stat: no need to ask funcnames nor context.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:23
Subsystem: the rest · Maintainer: Linus Torvalds

Johannes Schindelin [off-list ref] writes:
Now, you can say "git diff --stat" (to get an idea how many changes are
uncommitted), or "git log --stat".
    
Signed-off-by: Johannes Schindelin <redacted>
Nice.

-- >8 --
Signed-off-by: Junio C Hamano <redacted>

---

 diff.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

84981f9ad963f050abf4fe33ac07d36b4ea90c6d
diff --git a/diff.c b/diff.c
index c120239..f1b672d 100644
--- a/diff.c
+++ b/diff.c
@@ -438,8 +438,8 @@ static void builtin_diffstat(const char 
 		xdemitcb_t ecb;
 
 		xpp.flags = XDF_NEED_MINIMAL;
-		xecfg.ctxlen = 3;
-		xecfg.flags = XDL_EMIT_FUNCNAMES;
+		xecfg.ctxlen = 0;
+		xecfg.flags = 0;
 		ecb.outf = xdiff_outf;
 		ecb.priv = diffstat;
 		xdl_diff(&mf1, &mf2, &xpp, &xecfg, &ecb);
-- 
1.3.0.rc3.g9306
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help