| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1 1 1 | var getOneLineLog = require('./src/getOneLineLog');
module.exports = {
getOneLineLog: getOneLineLog,
cloneRepo: require('./src/cloneRepo'),
exec: require('./src/exec'),
blame: require('./src/blame')
};
Iif (!module.parent) {
getOneLineLog({
n: 4,
remote: 'origin',
branch: 'master'
})
.done(function (stdout) {
console.log(stdout);
}, function (err) {
console.error(err);
});
}
|