gitignore: Add a few forgotten files
PATCH 1/1 gitignore: Add a few forgotten files
Add a few forgotten files to .gitignore which are generated when building grub:
/30_uefi-firmware
/ChangeLog
/docs/*.info-*--- .gitignore | 3 +++ 1 file changed, 3 insertions(+)
.gitignore +3 -0
@@ -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
Signature · 1 line
2.25.3
Hi Hans Ulrich!
Quoted 26 lines · Hans Ulrich Niedermann
Signed-off-by Hans Ulrich Niedermann <[email protected]>--- .gitignore | 3 +++ 1 file changed, 3 insertions(+).gitignore +2
-0@@ -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
.gitignore configure · line 39
Quoted 7 lines
.gitignore +1
-0@@ -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"?
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 29 lines · On Wed, 22 Apr 2020 21:54:14 +0200 John Paul Adrian Glaubitz…
Quoted 28 lines · Hans Ulrich Niedermann
Signed-off-by Hans Ulrich Niedermann <[email protected]>--- .gitignore | 3 +++ 1 file changed, 3 insertions(+).gitignore +2
-0@@ -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
Quoted 8 lines
.gitignore configure · line 39
Quoted 5 lines
.gitignore +1
-0docs/*.info +/docs/*.info-* docs/stamp-vti docs/version.texi ehci_testWhat'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
Quoted 13 lines · Hans Ulrich Niedermann
Quoted 2 lines
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.
Quoted 6 lines
If a ".gitignore" file contains
Makefilethen git will ignore all files named
Makefilelocated in the same directory where the .gitignore file is _and_in_all_of_its_subdirs_.
Ah, I wasn't aware of that syntax. Thanks for the explanation.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 64 lines · Hans Ulrich Niedermann
Quoted 29 lines · On Wed, 22 Apr 2020 21:54:14 +0200 John Paul Adrian Glaubitz…
Quoted 28 lines · Hans Ulrich Niedermann
Signed-off-by Hans Ulrich Niedermann <[email protected]>--- .gitignore | 3 +++ 1 file changed, 3 insertions(+).gitignore +2
-0@@ -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 DISTLISTQuoted 8 lines
.gitignore configure · line 39
Quoted 5 lines
.gitignore +1
-0docs/*.info +/docs/*.info-* docs/stamp-vti docs/version.texi ehci_testWhat'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
Makefilethen git will ignore all files named
Makefilelocated 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.
Quoted 5 lines
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.
I have checked the .gitignore file and it looks like complete mess. So, if you touch this file I would like to ask you to do some cleanups. First of all group all entries with "/" and without it in separate groups (one empty line separator is OK; I think that entries with "/" should land in first group but I am not strongly tied to that). This should go into patch one. Then sort both groups alphabetically (second patch). And at the end add your entries into relevant groups (third patch or four one if you do next). If you could identify which currently existing entries have "/" missing and add it that would be perfect (third patch).
And some more hints. If you post more than one patch please create cover letter (git send-email --compose ...). Please create new thread for new patchset and do not attach it to the existing threads. If you need to repost the patches please repost whole series as new thread instead of individual patches. Though I will review patches posted up until now.
Daniel