fix: --all flag to only stage tracked files

This commit is contained in:
Hiroki Osame
2023-05-03 22:37:42 +09:00
parent e41637d6a1
commit 9a841d946f
2 changed files with 7 additions and 5 deletions

View File

@@ -27,7 +27,8 @@ export default async (
const detectingFiles = spinner();
if (stageAll) {
await execa('git', ['add', '--all']);
// This should be equivalent behavior to `git commit --all`
await execa('git', ['add', '--update']);
}
detectingFiles.start('Detecting staged files');