[auto]
[change] main.js
This commit is contained in:
4
main.js
4
main.js
@@ -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,7 +159,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');
|
||||||
await autoCommit(folderPath, msg);
|
await autoCommit(folderPath, msg);
|
||||||
win.webContents.send('repo-updated', folderPath);
|
win.webContents.send('repo-updated', folderPath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user