Skip to main content
Version: 2.0 (deprecated)

changed


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

Backend: ``

Config section: [changed]

Basic options

dependees

--changed-dependees=<DependeesOption>
PANTS_CHANGED_DEPENDEES
pants.toml
[changed]
dependees = <DependeesOption>
one of: none, direct, transitive
default: none

Include direct or transitive dependees 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

changes_since

--changed-changes-since=<str>, --changed-parent=<str>
PANTS_CHANGED_CHANGES_SINCE
pants.toml
[changed]
changes_since = <str>
default: None
Deprecated, will be removed in version: 2.1.0.dev0.
Use `--changed-since` instead of `--changed-parent` or `--changed-changes-since`.

Calculate changes since this tree-ish/scm ref.

fast

--[no-]changed-fast
PANTS_CHANGED_FAST
pants.toml
[changed]
fast = <bool>
default: False
Deprecated, will be removed in version: 2.1.0.dev0.
The option `--changed-fast` no longer does anything.

Stop searching for owners once a source is mapped to at least one owning target.

include_dependees

--changed-include-dependees=<DependeesOption>
PANTS_CHANGED_INCLUDE_DEPENDEES
pants.toml
[changed]
include_dependees = <DependeesOption>
one of: none, direct, transitive
default: none

Deprecated, will be removed in version: 2.1.0.dev0.
Use `--changed-dependees` instead of `--changed-include-dependees`.

Include direct or transitive dependees of changed targets.

None