git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <junkio@cox.net>
Date
Apr 14, 2006, 04:37 UTC
Message-ID
<7vzmiovkkn.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0604140012560.10924@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> 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 <Johannes.Schindelin@gmx.de>
Nice.
-- >8 --
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 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
Previous: Johannes Schindelin
Message 3 of 3 in “diff-options: add --stat (take 2)”
  1. diff-options: add --stat (take 2)Johannes Schindelin, Apr 13, 2006
  2. Johannes SchindelinApr 13, 2006
  3. diff --stat: no need to ask funcnames nor context.Junio C Hamano, Apr 14, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.