]> source.dussan.org Git - gitignore.git/commitdiff
Unless full paths are used .gitignore, all matching files and folders will be ignored...
authorTom Ward <tom@popdog.net>
Tue, 9 Nov 2010 07:25:48 +0000 (07:25 +0000)
committerChris Wanstrath <chris@ozmm.org>
Tue, 9 Nov 2010 07:58:18 +0000 (23:58 -0800)
For example, ignoring log/* doesn't just ignore all log files, but also files such as lib/project/log/awesome_logger.rb.  It's a mistake I've made a couple of times but never seemed to have learned from.

Rails.gitignore

index 271d2f29c0df12ff4a1d2ce3179be53c2c382330..bf690d219949857d1caaaed8a27efc21299c8ff1 100644 (file)
@@ -1,12 +1,12 @@
 *.rbc
-.bundle
-vendor/bundle
-log/*
-tmp/*
-db/*.sqlite3
-public/system/*
-coverage/
 *.sassc
 .sass-cache
 capybara-*.html
 .rspec
+/.bundle
+/vendor/bundle
+/log/*
+/tmp/*
+/db/*.sqlite3
+/public/system/*
+/coverage/