Get changed-modules
get changed-modules - Get modules affected by changed files
Flags
| Flag | Description |
|---|---|
--as-yaml |
Output as YAML (default) |
--as-json |
Output as JSON |
--as-toml |
Output as TOML |
--base |
Base ref to compare against (default: HEAD) |
--from-stdin |
Read file paths from stdin (one per line) instead of git diff |
Notes
Expected Output:
YAML list of module monikers that have changes based on git diff against the specified base ref, or based on file paths read from stdin when --from-stdin is used. Only includes modules directly containing changed files.
Examples
get changed-modules # Use git diff HEAD
get changed-modules --base main # Use git diff main
echo "path/to/file.go" | get changed-modules --from-stdin # Read from stdin
See Also
- get changed-modules-ci - For CI pipelines
- show files-changed
- build
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.