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

[WISH] prepend diffstat in front of the patch

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Apr 15, 2006, 09:07 UTC
Message-ID
<e5bfff550604150207h6fdb0042x3a9bbfa63269a8c8@mail.gmail.com>
>From today git tree
$ git-diff-tree -r -c -p --stat 84981f9
84981f9ad963f050abf4fe33ac07d36b4ea90c6d
---
 diff.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

$ git-diff-tree -r -c --stat -p 84981f9 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);


Perhaps I missed something, but I would like to see --stat and -p as 
_cumulative_ options .

Would be great if git-diff-tree -r -c --stat -p 84981f9 prepends
diffstat in front of the patch as Junio suggested some days ago.

Is it already planned?

Thanks
Marco
Next: Junio C Hamano
Message 1 of 7 in “[WISH] prepend diffstat in front of the patch”
  1. Marco CostalbaApr 15, 2006
  2. Junio C HamanoApr 15, 2006
  3. Marco CostalbaApr 15, 2006
  4. Johannes SchindelinApr 15, 2006
  5. Johannes SchindelinApr 15, 2006
  6. Junio C HamanoApr 15, 2006
  7. Johannes SchindelinApr 15, 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.