Skip to content

Commit

Permalink
meta: whitelist dotfiles in .gitignore
Browse files Browse the repository at this point in the history
Instead of excluding IDE-specific dotfiles, exclude all and
then whitelist those the project needs to track.

Refs: nodejs#8010
Refs: nodejs#9111
Refs: nodejs#10052

Fixes: nodejs#8012
PR-URL: nodejs#8016

Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Josh Gavant <josh.gavant@outlook.com>
  • Loading branch information
claudiorodriguez authored and Jonathan Darling committed Dec 8, 2016
1 parent dd2c8af commit 96ade1f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -16,8 +32,6 @@ node
node_g
*.swp
.benchmark_reports
/.project
/.cproject
icu_config.gypi
.eslintcache

Expand Down

0 comments on commit 96ade1f

Please sign in to comment.