From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jRM27-0006Uf-5O for mharc-grub-devel@gnu.org; Wed, 22 Apr 2020 16:31:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51308) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRM24-0006Tf-Vv for grub-devel@gnu.org; Wed, 22 Apr 2020 16:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRM23-0002ro-TU for grub-devel@gnu.org; Wed, 22 Apr 2020 16:31:44 -0400 Received: from mailout03.mx.bawue.net ([193.7.176.64]:46518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRM22-0002JF-CS for grub-devel@gnu.org; Wed, 22 Apr 2020 16:31:43 -0400 Received: from n-dimensional.de (p5B0825D9.dip0.t-ipconnect.de [91.8.37.217]) (Authenticated sender: pdim@bawue.de) by smtp.bawue.net (Postfix) with ESMTPSA id 06E8D205BD for ; Wed, 22 Apr 2020 22:31:36 +0200 (CEST) Date: Wed, 22 Apr 2020 22:31:35 +0200 From: Hans Ulrich Niedermann To: grub-devel@gnu.org Subject: Re: [PATCH] gitignore: Add a few forgotten files Message-ID: <20200422223135.158a21da@n-dimensional.de> In-Reply-To: <2acfbf19-fab9-65ce-2c64-65bc9376812f@physik.fu-berlin.de> References: <20200422194439.320988-1-hun@n-dimensional.de> <2acfbf19-fab9-65ce-2c64-65bc9376812f@physik.fu-berlin.de> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanner: SAV Dynamic Interface 2.6.0, Engine: 3.77.1, SAV: 5.74 (8B47E652) 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.64; envelope-from=hun@n-dimensional.de; helo=mailout03.mx.bawue.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/22 15:29:18 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 193.7.176.64 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: Wed, 22 Apr 2020 20:31:45 -0000 On Wed, 22 Apr 2020 21:54:14 +0200 John Paul Adrian Glaubitz wrote: > On 4/22/20 9:44 PM, Hans Ulrich Niedermann wrote: > > Signed-off-by: Hans Ulrich Niedermann > > --- > > .gitignore | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/.gitignore b/.gitignore > > index 819cd185d..149b3713a 100644 > > --- a/.gitignore > > +++ b/.gitignore > > @@ -3,6 +3,7 @@ > > 10_* > > 20_linux_xen > > 30_os-prober > > +/30_uefi-firmware > > 40_custom > > 41_custom > > *.1 > > @@ -18,6 +19,7 @@ build-grub-gen-asciih > > build-grub-gen-widthspec > > build-grub-mkfont > > cdboot_test > > +/ChangeLog > > cmp_test > > config.cache > > config.guess > > @@ -31,6 +33,7 @@ configure > > core_compress_test > > DISTLIST > > docs/*.info > > +/docs/*.info-* > > docs/stamp-vti > > docs/version.texi > > ehci_test > > What's with the preceding slash in the filenames? Is it really > "/30_uefi-firmware"? Yes. If a ".gitignore" file contains /ChangeLog then git will only ignore a file named "ChangeLog" located in the same directory where the .gitignore file is, i.e. a file like "subdir/ChangeLog" will not match. If a ".gitignore" file contains Makefile then git will ignore all files named Makefile located in the same directory where the .gitignore file is _and_in_all_of_its_subdirs_. The files I want to ignore are created in just one specific (sub)directory, so I want to ignore those files only in their respective (sub)directory. Ignoring other files located in some other directory just because they happen to have the same name does not make sense and would be a mistake. Of course, this means it would make most sense to actually change most lines in .gitignore to start with "/", but I just wanted to _add_ a few forgotten files here without rewriting everything from scratch, but without copying the mistakes of the existing lines to the newly added lines. Uli