Clean up .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.

To this end, remove the long-standing sections for "Mr Developer"
and "Editors" since their mere existence here sends the signal that
we welcome (and have time to review) additions for any old tool
someone ever might happen to try. Also add a comment block
explaining this, for clarity.

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

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

Change-Id: I79569d8693937c436056e90116cc3f59b4a34507
This commit is contained in:
Jeremy Stanley 2018-10-05 18:06:06 +00:00
parent 2c5f68fe50
commit 947c7c9776
2 changed files with 23 additions and 14 deletions

22
.gitignore vendored
View File

@ -1,3 +1,15 @@
# Add patterns in here to exclude files created by tools integrated with this
# repository, such as test frameworks from the project's recommended workflow,
# rendered documentation and package builds.
#
# Don't add patterns to exclude files created by preferred personal tools
# (editors, IDEs, your operating system itself even). These should instead be
# maintained outside the repository, for example in a ~/.gitignore file added
# with:
#
# git config --global core.excludesfile '~/.gitignore'
# Bytecompiled Python
*.py[cod]
# C extensions
@ -32,11 +44,6 @@ nosetests.xml
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Complexity
output/*.html
output/*/index.html
@ -48,11 +55,6 @@ doc/build
AUTHORS
ChangeLog
# Editors
*~
.*.swp
.*sw?
# Cookiecutter
output/
boilerplate/

View File

@ -1,3 +1,14 @@
# Add patterns in here to exclude files created by tools integrated with this
# repository, such as test frameworks from the project's recommended workflow,
# rendered documentation and package builds.
#
# Don't add patterns to exclude files created by preferred personal tools
# (editors, IDEs, your operating system itself even). These should instead be
# maintained outside the repository, for example in a ~/.gitignore file added
# with:
#
# git config --global core.excludesfile '~/.gitignore'
AUTHORS
ChangeLog
build
@ -8,10 +19,7 @@ npm-debug.log
releasenotes/build
{{ cookiecutter.module_name }}/test/.secret_key_store
.coverage*
.idea
.jshintrc
.project
.pydevproject
.settings
.tox
.venv
@ -19,5 +27,4 @@ releasenotes/build
*.lock
*.mo
*.py[cod]
*.swp
*nose_results.html