mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 15:23:47 -05:00
26 lines
446 B
JavaScript
26 lines
446 B
JavaScript
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.log = undefined;
|
|
|
|
var _child_process = require('child_process');
|
|
|
|
exports.log = log;
|
|
|
|
/**
|
|
* Asynchronously gets the git log output
|
|
*/
|
|
|
|
function log(repoPath, done) {
|
|
(0, _child_process.exec)('git log', {
|
|
maxBuffer: Infinity,
|
|
cwd: repoPath
|
|
}, function (error, stdout, stderr) {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
done(stdout);
|
|
});
|
|
} |