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
|
program
|
||||||
.name("rcz")
|
.name("rcz")
|
||||||
.description("Resultium commit standardization command-line interface")
|
.description("Resultium commit standardization command-line interface")
|
||||||
.version("1.4.0");
|
.version("1.5.0");
|
||||||
|
|
||||||
program
|
program
|
||||||
.command("commit")
|
.command("commit")
|
||||||
@@ -69,7 +69,11 @@ program
|
|||||||
? null
|
? null
|
||||||
: await confirm({
|
: await confirm({
|
||||||
message: "Stage all changes?",
|
message: "Stage all changes?",
|
||||||
initialValue: true,
|
initialValue: (
|
||||||
|
await simpleGit().diff(["--name-only", "--cached"])
|
||||||
|
).toString()
|
||||||
|
? false
|
||||||
|
: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isCancel(stageAll)) {
|
if (isCancel(stageAll)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user