1
0
[change] main.js
This commit is contained in:
2025-05-23 23:14:12 +02:00
parent 76da58bd21
commit 790ceb3386

View File

@@ -139,7 +139,7 @@ function startMonitoringWatcher(folderPath, win) {
status.deleted.length > 0 || status.deleted.length > 0 ||
status.renamed.length > 0 status.renamed.length > 0
) { ) {
const msg = buildCommitMessageFromStatus(status, '[auto] '); const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
const did = await autoCommit(folderPath, msg); const did = await autoCommit(folderPath, msg);
if (did) { if (did) {
win.webContents.send('repo-updated', folderPath); win.webContents.send('repo-updated', folderPath);
@@ -159,12 +159,12 @@ function startMonitoringWatcher(folderPath, win) {
status.deleted.length > 0 || status.deleted.length > 0 ||
status.renamed.length > 0 status.renamed.length > 0
) { ) {
const msg = buildCommitMessageFromStatus(status, '[auto]'); const msg = buildCommitMessageFromStatus(status, 'auto-git');
await autoCommit(folderPath, msg); await autoCommit(folderPath, msg);
win.webContents.send('repo-updated', folderPath); win.webContents.send('repo-updated', folderPath);
} }
}); });
monitoringWatchers.set(folderPath, watcher); monitoringWatchers.set(folderPath, watcher);
debug(`[MONITOR] Watcher aktiv für ${folderPath}`); debug(`[MONITOR] Watcher aktiv für ${folderPath}`);
} }