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

Re: [PATCH] diff-options: add --stat

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 13, 2006, 20:00 UTC
Message-ID
<Pine.LNX.4.63.0604132151040.29391@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7v64ld2uyv.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 13 Apr 2006, Junio C Hamano wrote:
> For an added line, xdl_emit_diffrec(rec, size, " ", 1, ecb) is
> called, which gives mb[0].ptr = " " and mb[1].ptr = <the
> contents of the line>; fn_diffstat() is called with (nbuf == 2).

Silly me. I did not check that code, but assumed that mb Just Contains Whole Lines...

Show 5 quoted lines
> Instead of driving diffstat code from run_diff(),
> run_diff_cmd(), and builtin_diff(), I think it would be much
> cleaner to define diff_flush_stat() as a sibling to
> diff_flush_raw() and diff_flush_patch(), and bypass the
> run_diff() chain.
I guess you're right. It is also more work :-(

There is another bug: if a file is created, you see "ev/null" as filename. Ugly.

I'll try to fix it.

Ciao, Dscho

Previous: Linus Torvalds
Message 13 of 13 in “diff-options: add --stat”
  1. diff-options: add --statJohannes Schindelin, Apr 13, 2006
  2. Johannes SchindelinApr 13, 2006
  3. Johannes SchindelinApr 13, 2006
  4. Junio C HamanoApr 13, 2006
  5. Junio C HamanoApr 13, 2006
  6. Johannes SchindelinApr 13, 2006
  7. Marco CostalbaApr 13, 2006
  8. Johannes SchindelinApr 13, 2006
  9. Junio C HamanoApr 13, 2006
  10. Linus TorvaldsApr 13, 2006
  11. Junio C HamanoApr 13, 2006
  12. Linus TorvaldsApr 13, 2006
  13. Johannes SchindelinApr 13, 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.