[PATCH] D73253: [llvm] Fix file ignoring inside directories

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 22:43:09 PST 2020


smeenai created this revision.
smeenai added reviewers: beanz, compnerd, jyknight, pcc.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73253

Files:
  llvm/.gitignore


Index: llvm/.gitignore
===================================================================
--- llvm/.gitignore
+++ 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 @@
 #==============================================================================#
 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73253.239781.patch
Type: text/x-patch
Size: 1423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200123/a06ca2ee/attachment.bin>


More information about the llvm-commits mailing list