Skip to content

Commit a63c15c

Browse files
committed
Add git utilities module to registry
- Implement getChangedFiles, getUnstagedFiles, getStagedFiles with async/sync variants - Add isChanged, isUnstaged, isStaged file checking functions - Support caching, filtering by cwd, and absolute/relative paths - Handle symlinks properly with realpathSync - Parse git porcelain format correctly - Export via registry/package.json
1 parent 3ddf93d commit a63c15c

8 files changed

Lines changed: 1051 additions & 295 deletions

File tree

.github/workflows/_local-not-for-reuse-provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- '1'
1717

1818
permissions:
19-
contents: read
19+
contents: write
2020
id-token: write
2121

2222
jobs:

.github/workflows/provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ on:
6161
required: false
6262

6363
permissions:
64-
contents: read
64+
contents: write
6565
id-token: write
6666

6767
concurrency:

registry/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,10 @@
10781078
"types": "./dist/lib/functions.d.ts",
10791079
"default": "./dist/lib/functions.js"
10801080
},
1081+
"./lib/git": {
1082+
"types": "./dist/lib/git.d.ts",
1083+
"default": "./dist/lib/git.js"
1084+
},
10811085
"./lib/globs": {
10821086
"types": "./dist/lib/globs.d.ts",
10831087
"default": "./dist/lib/globs.js"

0 commit comments

Comments
 (0)