Skip to main content
Version: 2.0.x (deprecated)

changed


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

Backend: pants.core

Config section: [changed]

Basic options

since

--changed-since=<str>
PANTS_CHANGED_SINCE
default: None

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

diffspec

--changed-diffspec=<str>
PANTS_CHANGED_DIFFSPEC
default: None

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

dependees

--changed-dependees=<DependeesOption>
PANTS_CHANGED_DEPENDEES
one of: none, direct, transitive
default: none

Include direct or transitive dependees of changed targets.

Advanced options

None

Deprecated options

changes_since

--changed-changes-since=<str>, --changed-parent=<str>
PANTS_CHANGED_CHANGES_SINCE
default: None

Calculate changes since this tree-ish/scm ref.

include_dependees

--changed-include-dependees=<DependeesOption>
PANTS_CHANGED_INCLUDE_DEPENDEES
one of: none, direct, transitive
default: none

Include direct or transitive dependees of changed targets.

fast

--[no-]changed-fast
PANTS_CHANGED_FAST
default: False

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