Skip to content

Commit

Permalink
Fix up .gitignore for top-level file patterns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
torvalds committed Mar 13, 2010
1 parent 64d5aea commit 6db823c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .gitignore
Expand Up @@ -34,14 +34,18 @@ modules.builtin
#
# Top-level generic files
#
tags
TAGS
linux
vmlinux
vmlinuz
System.map
Module.markers
Module.symvers
/tags
/TAGS
/linux
/vmlinux
/vmlinuz
/System.map
/Module.markers
/Module.symvers

#
# git files that we don't want to ignore even it they are dot-files
#
!.gitignore
!.mailmap

Expand Down

0 comments on commit 6db823c

Please sign in to comment.