[snip snip]
Pardon me for butting in (and I'm honestly NOT trying to start a flamewar),
but I'm wondering if this could be solved by tracking directories in the
index. AFAICS it would:
- Help bring the number of lstat() calls down (since we can cache the
lstat() results for directories like we currently do for regular files)
- More easily detect complicated cases like "add across symlinks" (see
Junio's email at the spinics.net link above)
- (less important) When discussing empty directory support several months
ago, ISTR one of the biggest hurdles being that directories were not
tracked in the index
I don't know much about how the index is implemented (few do, I think), so
if there is a glaringly obvious reason why tracking directories in the
index is a bad idea, please enlighten me.
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html