Repository navigation
Commit e40a144
committed
Replace execSync shell commands with execFileSync and use repository.add API for staging files
- Refactor git-repository-utils.ts to replace all instances of execSync with execFileSync by passing arguments as an array to prevent shell command injection, and replace the git add shell execution with the built-in repository.add(files_to_stage) method.
└── apps
└── editor
├── package.json
└── src
├── commands
│ ├── copy-merge-commit-details-command.ts
│ ├── generate-commit-message-commands
│ │ ├── actions
│ │ │ ├── get-prompt-data.ts
│ │ │ └── run-generate-action.ts
│ │ ├── generate-commit-message-commands.ts
│ │ └── utils
│ │ └── build-commit-message-prompt.ts
│ └── select-files-of-commit-command.ts
├── i18n
│ └── translations
│ └── utils
│ ├── git-repository-utils.ts
│ └── index.ts
├── utils
│ └── git-repository-utils.ts
└── views
└── prompt
└── backend
└── utils
└── symbols
└── git
└── replace-git-symbols.ts1 parent c2d9b2d commit e40a144
1 file changed
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
522 | 526 | | |
523 | 527 | | |
524 | 528 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 529 | + | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
534 | | - | |
| 533 | + | |
535 | 534 | | |
536 | 535 | | |
537 | 536 | | |
| |||
0 commit comments