Thread (1 message) 1 message, 1 author, 2017-12-28

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

From: Junio C Hamano <hidden>
Date: 2017-12-28 18:34:27

Duy Nguyen [off-list ref] writes:
quoted
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.
- 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help