brew/.gitignore
Mike McQuaid a36872c1da gitignore: reorder, cleanup and document.
This new `.gitignore` format produces consistent/expected `git status`
output with Git <2.7.0, Git >2.7.0 and libgit2 0.23.4.

Closes Homebrew/homebrew#47721.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-05 19:16:03 +00:00

45 lines
847 B
Plaintext

# First, ignore everything.
/*
# Explicitly ignore OS X Finder thumbnail files.
.DS_Store
# Unignore the contents of `Library` as that's where our code lives.
!/Library/
# Ignore generated files within `Library` (again).
/Library/Homebrew/doc
/Library/Homebrew/test/.bundle
/Library/Homebrew/test/bin
/Library/Homebrew/test/vendor
/Library/Homebrew/test/coverage
/Library/Homebrew/test/fs_leak_log
/Library/LinkedKegs
/Library/PinnedKegs
/Library/PinnedTaps
/Library/Taps
# Ignore `bin` contents (again).
/bin
# Unignore our `brew` script.
!/bin/brew
# Ignore `share` contents (again).
/share
/share/doc
# Unignore our documentation.
!/share/doc/homebrew
!/share/man/man1/brew.1
# Unignore our root-level metadata files.
!/.gitignore
!/.travis.yml
!/.yardopts
!/CODEOFCONDUCT.md
!/CONTRIBUTING.md
!/LICENSE.txt
!/README.md
!/SUPPORTERS.md