[PATCH] D11330: [LIT] Add a .gitignore to llvm/utils/lit

Eric Fiselier eric at efcs.ca
Sat Jul 18 12:59:14 PDT 2015


EricWF created this revision.
EricWF added a reviewer: ddunbar.
EricWF added a subscriber: llvm-commits.
EricWF set the repository for this revision to rL LLVM.

This patch adds a .gitignore to the `llvm/utils/lit` folder. There are two main reasons why it would be useful if LIT had it's own gitignore.

1. When testing LIT in-tree, the tests create a folder `test/Output` which constantly has to be removed.
2. When using LIT in a standalone repo, outside of the LLVM tree (see https://github.com/delcypher/llvm-lit), `.pyc` files are not ignored because the LLVM `.gitignore` is not present.

I'm not sure what the policy is for `.gitignore`'s in a subtree of LLVM, but if this is acceptable I would like to add it.


Repository:
  rL LLVM

http://reviews.llvm.org/D11330

Files:
  utils/lit/.gitignore

Index: utils/lit/.gitignore
===================================================================
--- /dev/null
+++ utils/lit/.gitignore
@@ -0,0 +1,28 @@
+#==============================================================================#
+# This file specifies intentionally untracked files that git should ignore.
+# See: http://www.kernel.org/pub/software/scm/git/docs/gitignore.html
+#
+# This file is intentionally different from the output of `git svn show-ignore`,
+# as most of those are useless.
+#==============================================================================#
+
+#==============================================================================#
+# File extensions to be ignored anywhere in the tree.
+#==============================================================================#
+# 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
+
+#==============================================================================#
+# Explicit files to ignore (only matches one).
+#==============================================================================#
+# Output folder created while testing lit
+/test/Output


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11330.30086.patch
Type: text/x-patch
Size: 1267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150718/0df5bde9/attachment.bin>


More information about the llvm-commits mailing list