From: Masahiro Yamada Date: Sat, 24 Apr 2021 19:47:19 +0000 (+0900) Subject: usr/include: refactor .gitignore X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5134e94ac4f5e58d73f39fde8ee6735b47f5c63d;p=linux.git 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 , . Signed-off-by: Masahiro Yamada --- diff --git a/usr/include/.gitignore b/usr/include/.gitignore index d2fab782cb7d8..17b0ba1bd3259 100644 --- a/usr/include/.gitignore +++ b/usr/include/.gitignore @@ -1,4 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only -* -!.gitignore -!Makefile +/*/