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. 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

--
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to