Re: [RFC PATCH] Re: Empty directories...
- From
David Kastrup <dak@gnu.org>
- Date
- Jul 19, 2007, 13:21 UTC
- Message-ID
- <86abts8r6z.fsf@lola.quinscape.zz>
- In-Reply-To
- <86bqe8a7ql.fsf@lola.quinscape.zz>
David Kastrup <dak@gnu.org> writes:
Show 17 quoted lines
> David Kastrup <dak@gnu.org> 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