feat: improve default 'stage all changes' behavior
This commit is contained in:
@@ -45,7 +45,7 @@ const program = new Command();
|
||||
program
|
||||
.name("rcz")
|
||||
.description("Resultium commit standardization command-line interface")
|
||||
.version("1.4.0");
|
||||
.version("1.5.0");
|
||||
|
||||
program
|
||||
.command("commit")
|
||||
@@ -69,7 +69,11 @@ program
|
||||
? null
|
||||
: await confirm({
|
||||
message: "Stage all changes?",
|
||||
initialValue: true,
|
||||
initialValue: (
|
||||
await simpleGit().diff(["--name-only", "--cached"])
|
||||
).toString()
|
||||
? false
|
||||
: true,
|
||||
});
|
||||
|
||||
if (isCancel(stageAll)) {
|
||||
|
||||
Reference in New Issue
Block a user