Skip to content

Commit 6db823c

Browse files
committed
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>
1 parent 64d5aea commit 6db823c

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

‎.gitignore‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ modules.builtin
3434
#
3535
# Top-level generic files
3636
#
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+
#
4549
!.gitignore
4650
!.mailmap
4751

0 commit comments

Comments
 (0)