Skip to main content
Version: 2.25 (dev)

changed


Tell Pants to detect what files and targets have changed from Git.

See https://www.pantsbuild.org/2.24/docs/using-pants/advanced-target-selection.

Backend: ``

Config section: [changed]

Basic options

dependents

--changed-dependents=<DependentsOption>
PANTS_CHANGED_DEPENDENTS
pants.toml
[changed]
dependents = <DependentsOption>
one of: none, direct, transitive
default: none

Include direct or transitive dependents of changed targets.

diffspec

--changed-diffspec=<str>
PANTS_CHANGED_DIFFSPEC
pants.toml
[changed]
diffspec = <str>
default: None

Calculate changes contained within a given Git spec (commit range/SHA/ref).

since

--changed-since=<str>
PANTS_CHANGED_SINCE
pants.toml
[changed]
since = <str>
default: None

Calculate changes since this Git spec (commit range/SHA/ref).

Advanced options

None

Deprecated options

None

None