Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix up .gitignore for top-level file patterns

Some of the gitignore file patters were explicitly meant to be only for
the top level, but weren't marked that way, so they would trigger
recursively in subdirectories too. Normally that was harmless, but at
least "linux" happened to trigger elsewhere too. Fix it up.

And other patterns in that section weren't necessarily top-level at all.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+12 -8
+12 -8
.gitignore
··· 34 34 # 35 35 # Top-level generic files 36 36 # 37 - tags 38 - TAGS 39 - linux 40 - vmlinux 41 - vmlinuz 42 - System.map 43 - Module.markers 44 - Module.symvers 37 + /tags 38 + /TAGS 39 + /linux 40 + /vmlinux 41 + /vmlinuz 42 + /System.map 43 + /Module.markers 44 + /Module.symvers 45 + 46 + # 47 + # git files that we don't want to ignore even it they are dot-files 48 + # 45 49 !.gitignore 46 50 !.mailmap 47 51