David Kastrup <dak@xxxxxxx> writes: > David Kastrup <dak@xxxxxxx> writes: > >> Although it would be natural to have >> core.adddirs: false >> be equivalent to >> core.excludefile: . >> >> And so it might be possible to actually not need a separate >> core.adddirs option at all, technically. > > To followup on myself here: > > A project such as the linux kernel which presumably does not want to > have directories tracked will put the single pattern > . > into its top-level .gitignore file. That is all. At least if it does > not confuse current versions of git to do ugly things. Another followup: it doesn't. I placed a single line . into a .gitignore file. This did not cause git to ignore the contents of ., and even git-add . worked as previously, namely adding the contents of the current directory and subdirectories to the index. In short: the gitignore idea for policing directory management is perfectly upwards-compatible with current versions of git. -- David Kastrup - 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