diff --git a/index.js b/index.js index 6e4dd9a..de98048 100755 --- a/index.js +++ b/index.js @@ -35,4 +35,13 @@ module.exports = { }) } + , lastCommitMessage: function(cb) { + _command('git log -1 --pretty=%B', function(str) { + if(str) { + cb(str) + } else { + cb(undefined) + } + }) + } }