mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 17:00:25 +01:00
Fix git path globs in summarize testdata changes SKILL (#7818)
When there's a wildcard in a path, git treats the path as matching exactly, unless the path also ends in a wildcard. So `toolchain/*/testdata` only matches the testdata directory names, whereas `toolchain/*/testdata/*` matches all the files under them.
This commit is contained in:
@@ -40,10 +40,11 @@ input changes.
|
||||
|
||||
#### For Git Users:
|
||||
|
||||
- **Summarize code changes**: `git diff --stat -- ':!toolchain/*/testdata'`
|
||||
- **Summarize code changes**: `git diff --stat -- ':!toolchain/*/testdata/*'`
|
||||
- To see content of non-testdata changes:
|
||||
`git diff -- ':!toolchain/*/testdata'`
|
||||
- **Identify testdata changes**: `git diff --name-only 'toolchain/*/testdata'`
|
||||
`git diff -- ':!toolchain/*/testdata/*'`
|
||||
- **Identify testdata changes**:
|
||||
`git diff --name-only 'toolchain/*/testdata/*'`
|
||||
|
||||
#### For Jujutsu (jj) Users:
|
||||
|
||||
@@ -80,7 +81,7 @@ STDOUT changes. This script reads a unified diff from stdin.
|
||||
|
||||
```bash
|
||||
# For Git:
|
||||
git diff -- 'toolchain/*/testdata' | python3 .agents/skills/summarize_testdata_changes/scripts/parse_diff.py
|
||||
git diff -- 'toolchain/*/testdata/*' | python3 .agents/skills/summarize_testdata_changes/scripts/parse_diff.py
|
||||
|
||||
# For Jujutsu (jj):
|
||||
jj diff --git 'toolchain/*/testdata' | python3 .agents/skills/summarize_testdata_changes/scripts/parse_diff.py
|
||||
|
||||
Reference in New Issue
Block a user