Jeff King <peff@xxxxxxxx> writes: > So now I am doubly confused. Did this feature exist, and was broken, and > you actually fixed it in 63d285c, creating what looked like a regression > but was actually intentional? I do not think it was an intentional change. I _think_ the comment at the beginning of show_files() tells us quite a bit---we don't do read-dir when showing the indexed files, and I suspect that we used to rely on the fact that not doing the read-dir made exclusion mechanism a no-op. After the lazy .gitignore reading, I suspect that excluded() call started to initialize the exclude mechanism lazily, and that is how the bug was introduced, isn't it? Regarding your patch, the loops deal with paths that are already in the index, so removing the conditional skip looks like a sane thing to do. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html