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>
This commit is contained in:
Masahiro Yamada 2021-04-25 04:47:19 +09:00
Родитель 382243f346
Коммит 5134e94ac4
1 изменённых файлов: 1 добавлений и 3 удалений

4
usr/include/.gitignore поставляемый
Просмотреть файл

@ -1,4 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
*
!.gitignore
!Makefile
/*/