Skip to content

Commit 0f0ecf8

Browse files
committed
Add Git source classes for various commit references
1 parent defb231 commit 0f0ecf8

12 files changed

+961
-383
lines changed

context.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
{
1313
"type": "git_diff",
1414
"description": "Recent Commits (Last 1)",
15-
"commit": "stash",
16-
"filePattern": "*.php",
15+
"commit": "staged",
1716
"notPath": [
1817
"vendor",
1918
"tests"
@@ -35,6 +34,20 @@
3534
}
3635
]
3736
},
37+
{
38+
"description": "Git finder.",
39+
"outputPath": "git_diff.md",
40+
"sources": [
41+
{
42+
"type": "file",
43+
"sourcePaths": [
44+
"src/Fetcher/Git",
45+
"src/Fetcher/FinderResult"
46+
],
47+
"filePattern": "*.php"
48+
}
49+
]
50+
},
3851
{
3952
"description": "Context generator tests.",
4053
"outputPath": "tests.md",

json-schema.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,20 @@
483483
"yesterday",
484484
"last-2weeks",
485485
"last-quarter",
486-
"last-year"
486+
"last-year",
487+
"stash",
488+
"stash-last",
489+
"stash-1",
490+
"stash-2",
491+
"stash-3",
492+
"stash-all",
493+
"stash-latest-2",
494+
"stash-latest-3",
495+
"stash-latest-5",
496+
"stash-before-pull",
497+
"stash-wip",
498+
"stash-untracked",
499+
"stash-index"
487500
],
488501
"description": "Git commit range (e.g., 'HEAD~5..HEAD')",
489502
"default": "staged"

0 commit comments

Comments
 (0)