[change] main.js
This commit is contained in:
8
main.js
8
main.js
@@ -139,10 +139,10 @@ function startMonitoringWatcher(folderPath, win) {
|
||||
|
||||
// Alle betroffenen Pfade sammeln und je nach Typ annotieren
|
||||
const changes = [];
|
||||
status.not_added.forEach(f => changes.push(`add ${f}`));
|
||||
status.created.forEach(f => changes.push(`add ${f}`));
|
||||
status.modified.forEach(f => changes.push(`change ${f}`));
|
||||
status.deleted.forEach(f => changes.push(`unlink ${f}`));
|
||||
status.not_added.forEach(f => changes.push(`[add] ${f}`));
|
||||
status.created.forEach(f => changes.push(`[add] ${f}`));
|
||||
status.modified.forEach(f => changes.push(`[change] ${f}`));
|
||||
status.deleted.forEach(f => changes.push(`[unlink] ${f}`));
|
||||
status.renamed.forEach(r => changes.push(`[rename] ${r.from} → ${r.to}`));
|
||||
|
||||
if (changes.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user