From 7dc9f9a9f919027579e7ee79459e62b06bc1c029 Mon Sep 17 00:00:00 2001 From: Claudio Rodriguez Date: Mon, 8 Aug 2016 17:55:16 +0100 Subject: [PATCH] meta: whitelist dotfiles in .gitignore Instead of excluding IDE-specific dotfiles, exclude all and then whitelist those the project needs to track. Fixes: https://github.com/nodejs/node/issues/8012 --- .gitignore | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ade43c5baaf432..d12d31259942d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,19 @@ +# Whitelist dotfiles +.* +!deps/**/.* +!test/fixtures/**/.* +!tools/eslint/**/.* +!tools/doc/node_modules/**/.* +!.editorconfig +!.eslintignore +!.eslintrc +!.gitattributes +!.github +!.gitignore +!.gitkeep +!.mailmap +!.remarkrc + core vgcore.* v8*.log @@ -16,8 +32,6 @@ node node_g *.swp .benchmark_reports -/.project -/.cproject icu_config.gypi /out