brew/.gitignore
Mike McQuaid 521efeab78 Merge Cask's gitignore with root one.
This fixes the ignoring in libgit2 clients that don't read nested
`.gitignore` files.
2016-09-10 10:03:19 +01:00

63 lines
1.2 KiB
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/cask/.bundle
/Library/Homebrew/cask/bin
/Library/Homebrew/cask/vendor
/Library/Homebrew/cask/coverage
/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/Locks
/Library/PinnedKegs
/Library/PinnedTaps
/Library/Taps
# Ignore vendored files within `Library`
/Library/Homebrew/vendor/portable-ruby
# Ignore `bin` contents (again).
/bin
# Unignore our `brew` script.
!/bin/brew
# Ignore `share` contents (again).
/share
/share/doc
/share/zsh
/share/zsh/site-functions
# Unignore our documentation.
!/.github
!/share/doc/homebrew
!/share/man/man1/brew.1
!/share/man/man1/brew-cask.1
# Ignore `etc` contents (again)
/etc
/etc/bash_completion.d
# Unignore our shell completion
!/etc/bash_completion.d/brew
!/share/zsh/site-functions/_brew
# Unignore our root-level metadata files.
!/.gitignore
!/.travis.yml
!/.yardopts
!/CODEOFCONDUCT.md
!/LICENSE.txt
!/README.md