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

Re: possible 'git --dirstat=0' buglet in 1.7.0.4?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 16, 2010, 18:05 UTC
Message-ID
<7v7hgdi1pp.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTi=wZ8MhU0NUw9as-kw8Lhr=TFBK2BY7MFRQvOct@mail.gmail.com>
Mike Coleman <tutufan@gmail.com> writes:
> I noticed just now that the '--dirstat=0' flag still seems to filter
> out some diffs, even though I would expect the '0' to mean "don't
> filter anything".  If there's another flag that says "don't filter", I
> missed it.  Could this be a rounding or off-by-one error?

We seem to internally compute in per-mille (see gather_dirstat() in diff.c) so if your changes are too small to be rounded off to zero there,...

I think you can remove the "if (permille)" there to make it not filter at all when dir->percent is set to 0, but I didn't look carefully.

Previous: Mike Coleman
Message 2 of 2 in “possible 'git --dirstat=0' buglet in 1.7.0.4?”
  1. Mike ColemanNov 12, 2010
  2. Junio C HamanoNov 16, 2010

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.