From f20e0d2010c628c807d558d66d28d6a8231c2e5f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 23 May 2025 23:00:45 +0200 Subject: [PATCH] [auto] change main.js --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 9292d46..ad4e6ab 100644 --- a/main.js +++ b/main.js @@ -125,7 +125,7 @@ function startMonitoringWatcher(folderPath, win) { watcher.on('all', async (event, changedPath) => { debug(`[MONITOR] ${event} in ${changedPath}`); // Hier einfach auto-commit Funktion rufen: - await autoCommit(folderPath, `[auto] ${event} ${path.relative(folderPath, changedPath)}`); + await autoCommit(folderPath, `[${event}] ${path.relative(folderPath, changedPath)}`); // Repo-UI aktualisieren: win.webContents.send('repo-updated', folderPath); }); @@ -147,7 +147,7 @@ function startMonitoringWatcher(folderPath, win) { if (changes.length > 0) { // Commit-Message so bauen wie beim Event (eine Zeile pro Datei) - const msg = `[auto]` + changes.map(l => ` ${l}`).join('\n'); + const msg = changes.map(l => ` ${l}`).join('\n'); const did = await autoCommit(folderPath, msg); if (did) { win.webContents.send('repo-updated', folderPath);