]> source.dussan.org Git - gitignore.git/commitdiff
fix gitignore syntax 2210/head
authorAndrew Pennebaker <andrew.pennebaker@gmail.com>
Wed, 7 Dec 2016 22:42:45 +0000 (16:42 -0600)
committerGitHub <noreply@github.com>
Wed, 7 Dec 2016 22:42:45 +0000 (16:42 -0600)
Some .gitignore parsers interpret directory vs non-directory patterns strictly (e.g. monochromegane/go-gitignore), so a `node_modules` pattern would not necessarily match against a real `node_modules` directory. It's generally safe to add a trailing slash to directory .gitignore patterns.

Node.gitignore

index 9a439fcd988ce41c4a86c5377045d0cbbe1244c2..32bfa0ed7d2e31595020b5909bbe7a93c09c3d5b 100644 (file)
@@ -28,8 +28,8 @@ coverage
 build/Release
 
 # Dependency directories
-node_modules
-jspm_packages
+node_modules/
+jspm_packages/
 
 # Optional npm cache directory
 .npm