summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiredpixel <tp@tiredpixel.com>2014-05-10 14:34:37 +0100
committerAndre Arko <andre@arko.net>2014-07-17 22:33:19 -0700
commit23cdaeb4c0e3133cce881ab4b5ed9e7a7a5635cf (patch)
treef190f420cc4ef6270b69a1902471f320f4c5a123
parent79e86b617e65877893c40387f30c633fa5c0fc16 (diff)
downloadbundler-23cdaeb4c0e3133cce881ab4b5ed9e7a7a5635cf.tar.gz
Slashify .gitignore template.
Without the initial `/` all such matches within the repo get ignored, and without the trailing slash files as well as directories of that name get ignored. e.g. Specifying `tmp` as well as `test/tmp` without slashes is redundant, as `tmp` already ignores `test/tmp`, as well as every other `tmp` and `tmp/`.
-rw-r--r--lib/bundler/templates/newgem/gitignore.tt30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/bundler/templates/newgem/gitignore.tt b/lib/bundler/templates/newgem/gitignore.tt
index 31cafb5d88..f4ef65f87b 100644
--- a/lib/bundler/templates/newgem/gitignore.tt
+++ b/lib/bundler/templates/newgem/gitignore.tt
@@ -1,20 +1,20 @@
*.gem
*.rbc
-.bundle
-.config
-.yardoc
-Gemfile.lock
-InstalledFiles
-_yardoc
-coverage
-doc/
-lib/bundler/man
-pkg
-rdoc
-spec/reports
-test/tmp
-test/version_tmp
-tmp
+/.bundle/
+/.config
+/.yardoc/
+/Gemfile.lock
+/InstalledFiles
+/_yardoc/
+/coverage/
+/doc/
+/lib/bundler/man/
+/pkg/
+/rdoc/
+/spec/reports/
+/test/tmp/
+/test/version_tmp/
+/tmp/
*.bundle
*.so
*.o