Revert configuration for consistency
This commit is contained in:
9
main.js
9
main.js
@@ -20,7 +20,6 @@ const store = new Store({
|
||||
intelligentCommitThreshold: 100
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
let folders = store.get('folders');
|
||||
if (Array.isArray(folders)) {
|
||||
@@ -197,8 +196,6 @@ function stopMonitoringWatcher(folderPath) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ---- Rewrite Git Messages with LLM generated messages ----
|
||||
|
||||
// ---- 1. Commits & Diffs für LLM sammeln ----
|
||||
@@ -309,9 +306,6 @@ function parseLLMCommitMessages(rawOutput) {
|
||||
throw new Error('Could not parse LLM output:\n' + rawOutput);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// --- Hauptfunktion ---
|
||||
/**
|
||||
* Rewords commit messages for each hash (oldest to newest) using git rebase -i in a loop.
|
||||
@@ -359,7 +353,6 @@ async function rewordCommitsSequentially(repoPath, commitMessageMap, hashes) {
|
||||
console.log('[AutoGit] All specified commit messages updated!');
|
||||
}
|
||||
|
||||
|
||||
// ---- 6. Komplett-Workflow (Randomized) ----
|
||||
async function runLLMCommitRewrite(folderPath, hashes) {
|
||||
// Generate a mapping { hash: message }
|
||||
@@ -415,7 +408,6 @@ function createRewriteScript(mapping) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function autoCommit(folderPath, message) {
|
||||
const git = simpleGit(folderPath);
|
||||
const status = await git.status();
|
||||
@@ -550,7 +542,6 @@ app.whenReady().then(() => {
|
||||
]);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
|
||||
// 1) Beim Start bereits gespeicherte Ordner überwachen und monitoren
|
||||
const folders = store.get('folders') || [];
|
||||
folders.forEach(folderObj => {
|
||||
|
||||
Reference in New Issue
Block a user