On Tuesday 09 August 2011, Eric Blake wrote: > On 08/09/2011 08:44 AM, Stefano Lattarini wrote: > > * .gitignore: Anchor files that are intended to be ignored only > > if found in the same directory of the `.gitignore' file, not also > > in its subdirectories. > > * doc/.gitignore, doc/amhello/.gitignore, lib/Automake/.gitignore, > > lib/Automake/tests/.gitignore, tests/.gitignore: Likewise. Also, > > where needed, add new entries that were once implied by the > > non-anchored entries in the upper-level `.gitignore' files. > > While it is up to Ralf, I personally prefer a single .gitignore file for > the entire tree. > FWIW, I slightly prefer that too. Now I'm in the middle of cleaning up the testuite on Solaris, but once that is done I might prepare a patch for the conversion to a single top-level `.gitignore' file. Unless somebody wants to beat me at it, of course ;-)
> You can have anchored paths for everything at the top > level, rather than a .gitignore per directory: > > > +++ b/doc/.gitignore > > @@ -1,27 +1,27 @@ > > -amhello-*.tar.gz > > For example, in the top level, this would be: > > /doc/amhello-*.tar.gz > Regards, Stefano
