sometimes running commands like: ```pants --change...
# general
h
sometimes running commands like:
Copy code
pants --changed-since=origin/main lint
doesn't actually do anything. Does anyone know why?
h
I’m assuming that there are lintable files that have changed relative to origin/main in the workspace you’re running this in?
In case it’s not clear, if your git state is clean that this will no-op by design
h
I see, this is helpful, thanks!
h
So
--changed-since=GITREF
tells pants “act only on files that have changed since that GITREF”
✅ 1
You can also add
--changed-dependents=transitive
to say “act only on files that have changed, or that transitively depend on files that have changed”