Skip to contentSkip to conversation

usr/include: refactor .gitignore

PATCH New Masahiro Yamada 1 participant 1 message Apr 24, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usr/include: refactor .gitignore

The current .gitignore intends to ignore everything under usr/include/ except .gitignore and Makefile.

A cleaner solution is to use the '/' suffix, which make the pattern match to only directories. It works well here because exported headers are all located in sub-directories such as <linux/*.h>, <asm/*.h>, etc.

---

 usr/include/.gitignore | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
usr/include/.gitignore +1 -3
index d2fab782cb7d..17b0ba1bd325 100644
@@ -1,4 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-*
-!.gitignore
-!Makefile
+/*/
Signature · 1 line
2.27.0