<#15935 Support other top-level gitignore location...
# github-notifications
c
#15935 Support other top-level gitignore locations Issue created by rshin Is your feature request related to a problem? Please describe. Pants uses patterns in the
.gitignore
to find additional files to ignore: https://www.pantsbuild.org/docs/reference-global#section-pants-ignore-use-gitignore However, Git itself also looks at
$GIT_DIR/info/exclude
(usually
.git/info/exclude
) and
$XDG_CONFIG_DIR/git/ignore
(usually
~/.config/git/ignore
, unless
core.excludeFiles
in
~/.gitconfig
is set differently) to get additional ignore patterns: https://git-scm.com/docs/gitignore. Describe the solution you'd like It would be good if Pants supported these locations too. This request is similar to #5682 but potentially simpler, as the interpretation of the patterns in these other ignore files is the same (they are relative to the repository root rather than some other location) and there is a fixed number of them. Describe alternatives you've considered You can replicate the additional ignore patterns in
.pants.rc
pantsbuild/pants