scatterd-dotfiles/gitignore

18 lines
161 B
Text
Raw Normal View History

*.pyc
2012-10-20 20:50:08 -07:00
*.sw[nop]
.DS_Store
2012-10-20 20:50:08 -07:00
.bundle
.byebug_history
.env
.git/
/bower_components/
/log
/node_modules/
/tmp
/vendor
2012-10-20 20:50:08 -07:00
db/*.sqlite3
log/*.log
rerun.txt
tmp/**/*
Don't gitignore tags/ directories (#677) * Don't gitignore tags/ directories For example, the [rails/rails][] project has an entire directory of classes with `tags` in the name, which hides it from search tools (like [`ag` The Silver Searcher][ag]) and prevents committing changes or introducing new files. Support for ignoring [files named `tags`][git_template/hooks], but including _directories_ named `tags/` was originally introduced in [a99fbb0][], but was subsequently broken when the [negative `!tags/` pattern declaration][] was moved _above_ the `tags` line that it negated. Instead of fighting the ignore patterns, this commit removes both lines. We currently ignore the contents of the [`.git/` directory][.git/], which is where [we store the `tags` file generated in our `git_template/hooks/ctags` command][git_template/hooks], so we should be covered without explicit declarations. [rails/rails]: https://github.com/rails/rails/tree/master/actionview/lib/action_view/helpers/tags [ag]: https://github.com/ggreer/the_silver_searcher/tree/2.2.0#whats-so-great-about-ag [a99fbb0]: https://github.com/thoughtbot/dotfiles/commit/a99fbb0f575c671fb7f481961de05e604c0b1fde [gitignore-pattern]: https://git-scm.com/docs/gitignore#_pattern_format [git_template/hooks]: https://github.com/thoughtbot/dotfiles/blob/56d614f8067c275f4d7b53f3f3a30a5effbeded9/git_template/hooks/ctags#L10 [.git/]: https://github.com/thoughtbot/dotfiles/blob/56d614f8067c275f4d7b53f3f3a30a5effbeded9/gitignore#L8 * Ignore `tags` file In case a `tags` file is declared outside `.git/tags`, continue to ignore it, while still supporting `tags/` directories.
2020-10-09 12:12:36 -04:00
/tags