Skip to content

Commit

Permalink
usr/include: refactor .gitignore
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masahir0y committed May 1, 2021
1 parent 382243f commit 5134e94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions usr/include/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
*
!.gitignore
!Makefile
/*/

0 comments on commit 5134e94

Please sign in to comment.