diff options
author | tiredpixel <tp@tiredpixel.com> | 2014-05-10 14:34:37 +0100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-07-17 22:33:19 -0700 |
commit | 23cdaeb4c0e3133cce881ab4b5ed9e7a7a5635cf (patch) | |
tree | f190f420cc4ef6270b69a1902471f320f4c5a123 | |
parent | 79e86b617e65877893c40387f30c633fa5c0fc16 (diff) | |
download | bundler-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.tt | 30 |
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 |