gityo 1.0.3 → 1.0.4
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/README.md +0 -14
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -171,17 +171,3 @@ Priority is simple:
|
|
|
171
171
|
- `.gityo.md` for repo-specific instructions
|
|
172
172
|
- `.gityo.config.json` for project config
|
|
173
173
|
- `~/.config/gityo.json` for your defaults
|
|
174
|
-
|
|
175
|
-
## Good for
|
|
176
|
-
|
|
177
|
-
- quick everyday commits
|
|
178
|
-
- cleaner staging and commit flow
|
|
179
|
-
- AI-assisted commit messages without losing control
|
|
180
|
-
|
|
181
|
-
## Notes
|
|
182
|
-
|
|
183
|
-
- run it inside a git repo
|
|
184
|
-
- if there are no changed files, it exits early
|
|
185
|
-
- if anything is already staged, the message is generated from staged files only and those are committed as-is
|
|
186
|
-
- if nothing is staged, the message is generated from all changes and everything is staged before committing
|
|
187
|
-
- `--yolo` is the fastest mode and skips the usual prompts
|
package/dist/index.js
CHANGED
|
@@ -197984,6 +197984,7 @@ async function mainController(options = {}) {
|
|
|
197984
197984
|
if (finalCommitMessage.length > 0) {
|
|
197985
197985
|
console.log(source_default.yellow.dim("✓ Using provided commit message"));
|
|
197986
197986
|
console.log(source_default.magenta.dim(finalCommitMessage));
|
|
197987
|
+
console.log("");
|
|
197987
197988
|
}
|
|
197988
197989
|
if (finalCommitMessage.length === 0 && !forceLLMGenerate) finalCommitMessage = await promptForCommitMessageInput(modelConfig.model);
|
|
197989
197990
|
if (finalCommitMessage.length === 0) while (true) {
|
|
@@ -197991,6 +197992,7 @@ async function mainController(options = {}) {
|
|
|
197991
197992
|
finalCommitMessage = (await runWithLoading("Generating commit message", () => generateCommitMessage(languageModel, config$4.instructions ?? null, diff))).text.trim();
|
|
197992
197993
|
if (finalCommitMessage.length === 0) throw new Error("The selected model returned an empty commit message.");
|
|
197993
197994
|
console.log(source_default.magenta.dim(finalCommitMessage));
|
|
197995
|
+
console.log("");
|
|
197994
197996
|
if (forceLLMGenerate || config$4.autoAcceptCommitMessage) break;
|
|
197995
197997
|
const action = await promptForGeneratedCommitAction();
|
|
197996
197998
|
if (action === "accept" || action === "cancel") break;
|