From 56bf7c379c2c665803c61eb9e1e5d49cd6b45db1 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 5 Oct 2018 18:18:02 +0000 Subject: [PATCH] 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. 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: Ia1da64c08247ea7f8a8b4b3677fe65ae45455c3b --- puppet-{{cookiecutter.project_name}}/.gitignore | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/puppet-{{cookiecutter.project_name}}/.gitignore b/puppet-{{cookiecutter.project_name}}/.gitignore index dade81e..bde29c6 100644 --- a/puppet-{{cookiecutter.project_name}}/.gitignore +++ b/puppet-{{cookiecutter.project_name}}/.gitignore @@ -1,2 +1,13 @@ +# 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' + Gemfile.lock .bundled_gems/