|
From: | Eric Blake |
Subject: | Re: [FYI] {master} gitignore: more use of anchors |
Date: | Tue, 09 Aug 2011 08:48:35 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11 |
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 address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |