pascal diff¶
Show which packages and apps have changed since a git ref.
Flags¶
| Flag | Default | Description |
|---|---|---|
--since REF |
latest git tag | Git ref (tag, branch, commit SHA) to compare against |
Behaviour¶
- Uses
git2to find all files changed betweenREFandHEAD - Maps changed file paths back to workspace bricks
- Also reports apps that transitively depend on changed packages
Output¶
Changes since 'v0.2.0'
◈ Changed bricks:
◆ cart [package]
◈ Apps affected by changed packages:
▶ storefront [app — transitive]
Examples¶
# Compare against latest tag (default)
pascal diff
# Compare against a specific tag
pascal diff --since v0.1.0
# Compare against a branch
pascal diff --since origin/main
# Compare against a commit SHA
pascal diff --since abc1234
Use in CI¶
Combined with pascal test --changed:
Note
pascal diff requires the workspace to be inside a git repository. It exits with an error if no git repo is found.