Commit a63c15c
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.json1 parent 3ddf93d commit a63c15c
8 files changed
Lines changed: 1051 additions & 295 deletions
File tree
- .github/workflows
- registry
- src/lib
- scripts
- utils
- test
- registry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1081 | 1085 | | |
1082 | 1086 | | |
1083 | 1087 | | |
| |||
0 commit comments