Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> writes: > this allows to use .gitignore in sparse mode, where .gitignore may or > may not be checked out (CE_VALID) Hmm, do we have a guarantee that we have read the index when .gitignore is used in all the codepath in the current codebase? "git add" used to do the fill_directory() traversal before reading the index in some cases back in v1.6.0 days for a reason. "git add" does not do so anymore, but I am wondering if there are others. -- 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