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