gitignore: Group patterns with and without slash

Group the .gitignore patterns into two groups:

  * Pattern not including a slash, i.e. matching files anywhere in
    the .gitignore file's directory and all of its subdirectories.

  * Patterns including a slash, i.e. matching only relative to the
    .gitignore file's directory.

Signed-off-by: Hans Ulrich Niedermann <hun@n-dimensional.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Hans Ulrich Niedermann 2020-05-07 23:33:16 +02:00 committed by Daniel Kiper
parent 16923f88ad
commit 26b7d55d82

85
.gitignore vendored
View file

@ -1,3 +1,6 @@
#
# Ignore patterns in this directory and all subdirectories.
#
*~ *~
00_header 00_header
10_* 10_*
@ -30,9 +33,6 @@ config.sub
configure configure
core_compress_test core_compress_test
DISTLIST DISTLIST
/docs/*.info
/docs/stamp-vti
/docs/version.texi
ehci_test ehci_test
example_grub_script_test example_grub_script_test
example_scripted_test example_scripted_test
@ -45,25 +45,18 @@ gensymlist.sh
gentrigtables gentrigtables
gentrigtables.exe gentrigtables.exe
gettext_strings_test gettext_strings_test
/gnulib
grub-bin2h grub-bin2h
/grub-bios-setup
/grub-bios-setup.exe
grub_cmd_date grub_cmd_date
grub_cmd_echo grub_cmd_echo
grub_cmd_regexp grub_cmd_regexp
grub_cmd_set_date grub_cmd_set_date
grub_cmd_sleep grub_cmd_sleep
/grub-editenv
/grub-editenv.exe
grub-emu grub-emu
grub-emu-lite grub-emu-lite
grub-emu.exe grub-emu.exe
grub-emu-lite.exe grub-emu-lite.exe
grub_emu_init.c grub_emu_init.c
grub_emu_init.h grub_emu_init.h
/grub-file
/grub-file.exe
grub-fstest grub-fstest
grub-fstest.exe grub-fstest.exe
grub_fstest_init.c grub_fstest_init.c
@ -72,21 +65,10 @@ grub_func_test
grub-install grub-install
grub-install.exe grub-install.exe
grub-kbdcomp grub-kbdcomp
/grub-macbless
/grub-macbless.exe
grub-macho2img grub-macho2img
/grub-menulst2cfg
/grub-menulst2cfg.exe
/grub-mk*
grub-mount grub-mount
/grub-ofpathname
/grub-ofpathname.exe
/grub-core/build-grub-pe2elf.exe
/grub-probe
/grub-probe.exe
grub_probe_init.c grub_probe_init.c
grub_probe_init.h grub_probe_init.h
/grub-reboot
grub_script_blanklines grub_script_blanklines
grub_script_blockarg grub_script_blockarg
grub_script_break grub_script_break
@ -128,26 +110,20 @@ grub-shell
grub-shell-tester grub-shell-tester
grub-sparc64-setup grub-sparc64-setup
grub-sparc64-setup.exe grub-sparc64-setup.exe
/grub-syslinux2cfg
/grub-syslinux2cfg.exe
gzcompress_test gzcompress_test
hddboot_test hddboot_test
help_test help_test
*.img *.img
*.image *.image
*.image.exe *.image.exe
/include/grub/cpu
/include/grub/machine
INSTALL.grub INSTALL.grub
install-sh install-sh
/lib/libgcrypt-grub
libgrub_a_init.c libgrub_a_init.c
*.log *.log
*.lst *.lst
lzocompress_test lzocompress_test
*.marker *.marker
Makefile Makefile
/m4
*.mod *.mod
mod-*.c mod-*.c
missing missing
@ -159,14 +135,6 @@ partmap_test
pata_test pata_test
*.pf2 *.pf2
*.pp *.pp
/po/*.mo
/po/grub.pot
/po/Makefile.in.in
/po/Makevars
/po/Makevars.template
/po/POTFILES
/po/Rules-quot
/po/stamp-po
printf_test printf_test
priority_queue_unit_test priority_queue_unit_test
pseries_test pseries_test
@ -190,13 +158,55 @@ compile
depcomp depcomp
mdate-sh mdate-sh
texinfo.tex texinfo.tex
/grub-core/lib/libgcrypt-grub
.deps .deps
.deps-util .deps-util
.deps-core .deps-core
.dirstamp .dirstamp
Makefile.util.am Makefile.util.am
contrib contrib
widthspec.bin
widthspec.h
Makefile.utilgcry.def
#
# Ignore patterns relative to this .gitignore file's directory.
#
/docs/*.info
/docs/stamp-vti
/docs/version.texi
/gnulib
/grub-bios-setup
/grub-bios-setup.exe
/grub-editenv
/grub-editenv.exe
/grub-file
/grub-file.exe
/grub-macbless
/grub-macbless.exe
/grub-menulst2cfg
/grub-menulst2cfg.exe
/grub-mk*
/grub-ofpathname
/grub-ofpathname.exe
/grub-core/build-grub-pe2elf.exe
/grub-probe
/grub-probe.exe
/grub-reboot
/grub-syslinux2cfg
/grub-syslinux2cfg.exe
/include/grub/cpu
/include/grub/machine
/lib/libgcrypt-grub
/m4
/po/*.mo
/po/grub.pot
/po/Makefile.in.in
/po/Makevars
/po/Makevars.template
/po/POTFILES
/po/Rules-quot
/po/stamp-po
/grub-core/lib/libgcrypt-grub
/grub-core/bootinfo.txt /grub-core/bootinfo.txt
/grub-core/Makefile.core.am /grub-core/Makefile.core.am
/grub-core/Makefile.gcry.def /grub-core/Makefile.gcry.def
@ -214,11 +224,8 @@ contrib
/util/bash-completion.d/grub /util/bash-completion.d/grub
/grub-core/lib/gnulib /grub-core/lib/gnulib
/grub-core/rs_decoder.h /grub-core/rs_decoder.h
widthspec.bin
widthspec.h
/docs/stamp-1 /docs/stamp-1
/docs/version-dev.texi /docs/version-dev.texi
Makefile.utilgcry.def
/po/*.po /po/*.po
/po/*.gmo /po/*.gmo
/po/LINGUAS /po/LINGUAS