Browse Source

Dissuade .gitignore references to personal tools

Developers run all sorts of different tools within Git repositories,
any of which can leave their own special trashfiles all over the
place. We can't every hope to catalog them all, so better to
recommend developers simply configure a global core.excludesfile to
filter the irrelevant files which tend to get created by their
personal choice of tools. Add a comment block explaining this, for
clarity, and remove the one current editor-specific entry present.

We can, and should of course, continue to list files created by the
tools recommended by our workflow (test frameworks, documentation
and packaging builds, et cetera).

This change is a port of Ib58a57267b064e4142686de6c37a70dbff04b9a7
from the openstack-dev/cookiecutter repository.

Change-Id: I548a3373adbcb4ce3aba4b1a29e792f3221e9b7b
tags/14.1.0
ZhongShengping 7 months ago
parent
commit
23f9b975fa
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      .gitignore

+ 11
- 1
.gitignore View File

@@ -1,3 +1,14 @@
1
+# Add patterns in here to exclude files created by tools integrated with this
2
+# repository, such as test frameworks from the project's recommended workflow,
3
+# rendered documentation and package builds.
4
+#
5
+# Don't add patterns to exclude files created by preferred personal tools
6
+# (editors, IDEs, your operating system itself even). These should instead be
7
+# maintained outside the repository, for example in a ~/.gitignore file added
8
+# with:
9
+#
10
+# git config --global core.excludesfile '~/.gitignore'
11
+
1 12
 pkg/
2 13
 Gemfile.lock
3 14
 vendor/
@@ -6,7 +17,6 @@ spec/fixtures/
6 17
 .bundle/
7 18
 coverage/
8 19
 .idea/
9
-*.swp
10 20
 *.iml
11 21
 /openstack
12 22
 /log

Loading…
Cancel
Save