[auto] change main.js
This commit is contained in:
10
main.js
10
main.js
@@ -117,7 +117,7 @@ function startMonitoringWatcher(folderPath, win) {
|
|||||||
awaitWriteFinish: {
|
awaitWriteFinish: {
|
||||||
stabilityThreshold: 300,
|
stabilityThreshold: 300,
|
||||||
pollInterval: 100
|
pollInterval: 100
|
||||||
} //yo
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: Optionale .gitignore Logik nachrüsten
|
// TODO: Optionale .gitignore Logik nachrüsten
|
||||||
@@ -133,10 +133,10 @@ function startMonitoringWatcher(folderPath, win) {
|
|||||||
// Initialer Commit, falls beim Start schon ungestagte Änderungen vorliegen
|
// Initialer Commit, falls beim Start schon ungestagte Änderungen vorliegen
|
||||||
(async () => {
|
(async () => {
|
||||||
debug(`[MONITOR] Starte initialen Commit-Check für ${folderPath}`);
|
debug(`[MONITOR] Starte initialen Commit-Check für ${folderPath}`);
|
||||||
const did = await autoCommit(
|
const event = 'startup';
|
||||||
folderPath,
|
const changedPath = folderPath;
|
||||||
`[auto] startup ${event} ${path.relative(folderPath, folderPath)}`
|
const msg = `[auto] ${event} ${path.relative(folderPath, changedPath)}`;
|
||||||
);
|
const did = await autoCommit(folderPath, msg);
|
||||||
if (did) {
|
if (did) {
|
||||||
win.webContents.send('repo-updated', folderPath);
|
win.webContents.send('repo-updated', folderPath);
|
||||||
debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt.`);
|
debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user