summaryrefslogtreecommitdiffstats
path: root/usr/include
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-24 21:47:19 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2021-05-01 17:43:34 +0200
commit5134e94ac4f5e58d73f39fde8ee6735b47f5c63d (patch)
tree222c73333785cf03cda07fc51101add504d30913 /usr/include
parentgenksyms: fix stale comment (diff)
downloadlinux-5134e94ac4f5e58d73f39fde8ee6735b47f5c63d.tar.xz
linux-5134e94ac4f5e58d73f39fde8ee6735b47f5c63d.zip
usr/include: refactor .gitignore
The current .gitignore intends to ignore everything under usr/include/ except .gitignore and Makefile. A cleaner solution is to use a pattern suffixed with '/', which matches only directories. It works well here because all the exported headers are located in sub-directories, like <linux/*.h>, <asm/*.h>. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'usr/include')
-rw-r--r--usr/include/.gitignore4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/include/.gitignore b/usr/include/.gitignore
index d2fab782cb7d..17b0ba1bd325 100644
--- a/usr/include/.gitignore
+++ b/usr/include/.gitignore
@@ -1,4 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
-*
-!.gitignore
-!Makefile
+/*/