From 99a603655e0453db82325fee67eb0cbe79da17a5 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 24 May 2025 15:13:37 +0200 Subject: [PATCH] auto-git: [change] main.js --- main.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/main.js b/main.js index 9ffd24b..e903d8b 100644 --- a/main.js +++ b/main.js @@ -371,22 +371,6 @@ async function squashCommitMessages(repoPath, commitMessage, hashes) { * Komplett-Workflow: Von Kandidaten bis Rewrite */ -async function runLLMCommitPipeline(folderPath, hashes) { - const prompt = await getPrompt(folderPath, hashes); - const llmOutput = (await streamLLMCommitMessages(prompt, chunk => process.stdout.write(chunk))).trim(); - - if (hashes.length === 1) { - // For a single commit: amend it in-place - const git = simpleGit(folderPath); - await git.raw(['commit', '--amend', '-m', llmOutput, '--no-edit', '--allow-empty']); - } else if (hashes.length > 1) { - // For multiple commits: squash & set message - await squashCommitMessages(folderPath, llmOutput, hashes); - } else { - throw new Error('No commits to rewrite.'); - } -} - async function autoCommit(folderPath, message) { const git = simpleGit(folderPath); const status = await git.status();