summaryrefslogtreecommitdiff
path: root/llvm/.gitignore
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2020-01-22 22:29:34 -0800
committerShoaib Meenai <smeenai@fb.com>2020-01-27 17:00:33 -0800
commit3a5acdc963634ab971fc834dacddacbfd965e985 (patch)
tree15d8e062d062657fbfd09b9ad66089ef5bfe581e /llvm/.gitignore
parenta308b98ecbb03820e3b30cc1323493ac21a6040e (diff)
downloadllvm-3a5acdc963634ab971fc834dacddacbfd965e985.tar.gz
[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
Diffstat (limited to 'llvm/.gitignore')
-rw-r--r--llvm/.gitignore31
1 files changed, 17 insertions, 14 deletions
diff --git a/llvm/.gitignore b/llvm/.gitignore
index 48dec78d510f..1f4bb5e4f1c1 100644
--- a/llvm/.gitignore
+++ b/llvm/.gitignore
@@ -7,21 +7,8 @@
#==============================================================================#
#==============================================================================#
-# File extensions to be ignored anywhere in the tree.
+# Nested build directory.
#==============================================================================#
-# Temp files created by most text editors.
-*~
-# Merge files created by git.
-*.orig
-# Byte compiled python modules.
-*.pyc
-# vim swap files
-.*.sw?
-.sw?
-#OS X specific files.
-.DS_store
-
-# Nested build directory
/build
#==============================================================================#
@@ -82,3 +69,19 @@ docs/_build
#==============================================================================#
bindings/go/llvm/llvm_config.go
bindings/go/llvm/workdir
+
+#==============================================================================#
+# File extensions to be ignored anywhere in the tree.
+# Placed at the end to override any previous ! patterns.
+#==============================================================================#
+# Temp files created by most text editors.
+*~
+# Merge files created by git.
+*.orig
+# Byte compiled python modules.
+*.pyc
+# vim swap files
+.*.sw?
+.sw?
+#OS X specific files.
+.DS_store