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

Re: [PATCH] status: add a failing test showing a core.untrackedCache bug

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 28, 2017, 18:34 UTC
Message-ID
<xmqq1sjen1lh.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171228061027.GA22308@duynguyen.vn.dektech.internal>
Duy Nguyen <pclouds@gmail.com> writes:
Show 14 quoted lines
>> Duy, what am I missing here?
>
> The problem is there, it's just easier to see or verify with
> symlinks. Below is my test patch on top of your original one. Two
> points:
>
> - if you look at the test-dump-untracked-cache output, you can see the
>   saved cache is wrong. The line
>
>     /one/ 0000000000000000000000000000000000000000 recurse valid
>
>   should not be there because that implies that cached travesal of
>   root includes the directory "one" which does not exist on disk
>   anymore. With the fix, this line is gone.
Nice.
Show 5 quoted lines
> - We silently ignore opendir() error, the changes in dir.c shows this
> ...
> Report opendir() errors is a good and should be done regardless (i'm
> just not sure if it should be a fatal error or a warning like this, I
> guess die() is a bit too much).

Thanks; I agree that it definitely would be a good change to issue a warning there.

Previous: Duy Nguyen
Message 12 of 12 in “status: add a failing test showing a core.untrackedCache bug”
  1. status: add a failing test showing a core.untrackedCache bugÆvar Arnfjörð Bjarmason, Dec 22, 2017
  2. Duy NguyenDec 25, 2017
  3. Ævar Arnfjörð BjarmasonDec 25, 2017
  4. Duy NguyenDec 26, 2017
  5. Duy NguyenDec 27, 2017
  6. 3/1 update-index doc: note a fixed bug in the untracked cacheÆvar Arnfjörð Bjarmason, Dec 27, 2017
  7. Junio C HamanoDec 27, 2017
  8. Eric SunshineDec 27, 2017
  9. Junio C HamanoDec 27, 2017
  10. Ævar Arnfjörð BjarmasonDec 27, 2017
  11. Duy NguyenDec 28, 2017
  12. Junio C HamanoDec 28, 2017

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.