Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

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

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:23

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...
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help