gityo 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -197997,13 +197997,10 @@ async function mainController(options = {}) {
|
|
|
197997
197997
|
}
|
|
197998
197998
|
if (finalCommitMessage.length === 0) throw new Error("Commit message cannot be empty.");
|
|
197999
197999
|
console.log("");
|
|
198000
|
-
|
|
198001
|
-
|
|
198002
|
-
await git.add(["-A"]);
|
|
198003
|
-
}
|
|
198000
|
+
console.log(source_default.yellow.dim("✓ Committing changes"));
|
|
198001
|
+
if (!hasStaged) await git.add(["-A"]);
|
|
198004
198002
|
console.log(files.join("\n"));
|
|
198005
198003
|
console.log("");
|
|
198006
|
-
console.log(source_default.yellow.dim("✓ Committing staged changes"));
|
|
198007
198004
|
await liveGit.commit(finalCommitMessage);
|
|
198008
198005
|
console.log("");
|
|
198009
198006
|
if (!config$4.postCommand) return;
|