Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jWiPI-0001Md-9d for mharc-grub-devel@gnu.org; Thu, 07 May 2020 11:25:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWiPF-0001Im-Uf for grub-devel@gnu.org; Thu, 07 May 2020 11:25:49 -0400 Received: from relay01.mx.bawue.net ([193.7.176.67]:44340 helo=smtp.bawue.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWiPD-0001gX-3j for grub-devel@gnu.org; Thu, 07 May 2020 11:25:49 -0400 Received: from infty.fritz.box (p5B1755C9.dip0.t-ipconnect.de [91.23.85.201]) (Authenticated sender: pdim@bawue.de) by smtp.bawue.net (Postfix) with ESMTPSA id A493E20379; Thu, 7 May 2020 17:25:36 +0200 (CEST) From: Hans Ulrich Niedermann To: grub-devel@gnu.org Cc: Hans Ulrich Niedermann Subject: [PATCH v3 0/6] gitignore: Clean up most of the gitignore mess Date: Thu, 7 May 2020 17:25:00 +0200 Message-Id: <20200507152506.328473-1-hun@n-dimensional.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanner: SAV Dynamic Interface 2.6.0, Engine: 3.77.1, SAV: 5.74 (5F97724F) on relay01.mx.bawue.net using milter-sssp 0.1.0 X-Virus-Scan: Found to be clean. Received-SPF: pass client-ip=193.7.176.67; envelope-from=hun@n-dimensional.de; helo=smtp.bawue.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/07 11:25:40 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 15:25:50 -0000 This cleans up most of the gitignore mess according to Daniel Kiper's suggestions: 1. Consistently add leading slash to all patterns matching relative to .gitignore 2. Group patterns matching everywhere in the subtree and patterns matching relative to .gitignore 3. Sort both pattern groups alphabetically 4. Add trailing slashes to patterns matching directories 5. Add leading slash where it has been forgotten 6. Add a few patterns matching files which have been forgotten Some of the remaining non-slash patterns (i.e. those matching anywhere in the directory tree) might work with a leading slash, but I could not research all of them (especially for old code and optionally built files), so I have left those for now. This is a revised version v3 of the older patchset v2 which achieves mostly the same result, but with the following differences: * Add a leading slash to /contrib as well, judging from autogen.sh. * Split adding slashes to patterns into one patch each for leading slashes and one for trailing slashes. * Add Reviewed-by: Daniel Kiper as Daniel Kiper has asked me to do after splitting trailing and leading slashes. Hans Ulrich Niedermann (6): gitignore: Consistent leading slash is easier to read gitignore: Group patterns with and without slash gitignore: Sort both pattern groups alphabetically gitignore: Add trailing slashes for directories gitignore: Add leading slashes where appropriate gitignore: Add a few forgotten file patterns .gitignore | 458 +++++++++++++++++++++++++++++------------------------ 1 file changed, 247 insertions(+), 211 deletions(-) Interdiff: diff --git a/.gitignore b/.gitignore index 89bd33f29..aa180fa89 100644 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,6 @@ GTAGS Makefile Makefile.in ascii.bitmaps -contrib genkernsyms.sh gensymlist.sh grub-bin2h @@ -88,6 +87,7 @@ widthspec.bin /config.status /config.sub /configure +/contrib /core_compress_test /cpio_test /date_test -- 2.26.2