1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1× 4× | import {exec} from 'child_process';
export { log };
/**
* Asynchronously gets the git log output
*/
function log(repoPath, done) {
exec('git log', {
maxBuffer: Infinity,
cwd: repoPath
}, function(error, stdout, stderr) {
Iif (error) {
done();
}
done(stdout);
});
}
|