Closed seanpdoyle closed 4 years ago
@tabfugnic since you authored https://github.com/thoughtbot/dotfiles/commit/a99fbb0f575c671fb7f481961de05e604c0b1fde, could you test out my assumption that .git/tags
is still ignored without these lines?
@geoffharcourt I've pushed up https://github.com/thoughtbot/dotfiles/pull/677/commits/42c728ffe473819082ed61ea34255b12d1487ae2, and it seems to work for me.
Wooot! @seanpdoyle If that turns out to be problematic, I don't think it's worth spending any further time here and falling back to your first commit seems like a fair tradeoff.
For example, the rails/rails project has an entire directory of classes with
tags
in the name, which hides it from search tools (likeag
The Silver Searcher) and prevents committing changes or introducing new files.Support for ignoring files named
tags
, but including directories namedtags/
was originally introduced in a99fbb0, but was subsequently broken when the [negative!tags/
pattern declaration][] was moved above thetags
line that it negated.Instead of fighting the ignore patterns, this commit removes both lines. We currently ignore the contents of the
.git/
directory, which is where we store thetags
file generated in ourgit_template/hooks/ctags
command, so we should be covered without explicit declarations.