1
0

Revert configuration for consistency

This commit is contained in:
2025-05-24 19:33:55 +02:00
parent 699b7b0c31
commit fe6f042bdc

View File

@@ -21,7 +21,6 @@ const store = new Store({
} }
}); });
let folders = store.get('folders'); let folders = store.get('folders');
if (Array.isArray(folders)) { if (Array.isArray(folders)) {
folders = folders.map(f => ({ folders = folders.map(f => ({
@@ -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 => {