Is it possible to configure `./pants tailor`, `./p...
# general
m
Is it possible to configure
./pants tailor
,
./pants test ::
, etc to only operate on files tracked in Git?
1
h
Hmm, they should already ignore everything configured by (
pants_ignore
)[https://www.pantsbuild.org/docs/reference-global#section-pants-ignore] which includes everything covered by gitignore by default (see https://www.pantsbuild.org/docs/reference-global#section-pants-ignore-use-gitignore)
Are you seeing otherwise?
Oh, and is this due to nested .gitignore files? IIRC we don't handle those at the moment
m
I mean files outside .gitignore that haven’t been staged or committed. If you run
git status
, they show up under
Untracked files:
h
there's no way to do this atm. It would require a specific
--no-changed-untracked
option. Would you be interested in adding that?
m
Hmm, I think running
git stash --include-untracked
first would be a good way to do it without specific support in Pants
👍 2
h
If that's acceptable for your workflow then yep!