mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-22 15:37:02 +00:00
19 lines
No EOL
475 B
JavaScript
19 lines
No EOL
475 B
JavaScript
const mainWinMod = require('./main-window');
|
|
|
|
module.exports = function(data) {
|
|
'use strict';
|
|
|
|
const exec = require('child_process').exec;
|
|
let cmd = 'git --no-pager log --graph --pretty=format:\'%s (%cr) <%an>\' --abbrev-commit --since=4am';
|
|
|
|
exec(cmd, {
|
|
cwd: data.cwd
|
|
}, function(error, stdout) {
|
|
const mainWin = mainWinMod.getWin();
|
|
mainWin.webContents.send('GIT_LOG_RESPONSE', {
|
|
stdout: stdout,
|
|
requestId: data.requestId
|
|
});
|
|
});
|
|
|
|
}; |