feat: improve default 'stage all changes' behavior
This commit is contained in:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"cSpell.words": ["Resultium", "Acked", "johndoe", "outro", "rczrc"]
|
||||
}
|
||||
14
cspell.json
14
cspell.json
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"version": "0.2",
|
||||
"ignorePaths": [],
|
||||
"dictionaryDefinitions": [],
|
||||
"dictionaries": [],
|
||||
"words": [
|
||||
"Acked",
|
||||
"johndoe",
|
||||
"outro",
|
||||
"rczrc"
|
||||
],
|
||||
"ignoreWords": [],
|
||||
"import": []
|
||||
}
|
||||
@@ -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