Skip to content

Commit 3a5acdc

Browse files
committed
[llvm] Fix file ignoring inside directories
We have some ! patterns in the .gitignore (for the projects and runtimes directories), and those patterns end up overriding the previous file ignores, such that e.g. a .swp file inside the runtimes directory isn't ignored. Move the file ignores last to ensure they take effect. Differential Revision: https://reviews.llvm.org/D73253
1 parent a308b98 commit 3a5acdc

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

llvm/.gitignore

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,8 @@
77
#==============================================================================#
88

99
#==============================================================================#
10-
# File extensions to be ignored anywhere in the tree.
10+
# Nested build directory.
1111
#==============================================================================#
12-
# Temp files created by most text editors.
13-
*~
14-
# Merge files created by git.
15-
*.orig
16-
# Byte compiled python modules.
17-
*.pyc
18-
# vim swap files
19-
.*.sw?
20-
.sw?
21-
#OS X specific files.
22-
.DS_store
23-
24-
# Nested build directory
2512
/build
2613

2714
#==============================================================================#
@@ -82,3 +69,19 @@ docs/_build
8269
#==============================================================================#
8370
bindings/go/llvm/llvm_config.go
8471
bindings/go/llvm/workdir
72+
73+
#==============================================================================#
74+
# File extensions to be ignored anywhere in the tree.
75+
# Placed at the end to override any previous ! patterns.
76+
#==============================================================================#
77+
# Temp files created by most text editors.
78+
*~
79+
# Merge files created by git.
80+
*.orig
81+
# Byte compiled python modules.
82+
*.pyc
83+
# vim swap files
84+
.*.sw?
85+
.sw?
86+
#OS X specific files.
87+
.DS_store

0 commit comments

Comments
 (0)