rafinskipg/git-changelog

View on GitHub
tasks/lib/get-gitlog-commands.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
'use strict';

var debug = require('debug')('changelog:getGitLogCommands');

function getGitLogCommands() {
  debug('getting log commands');
  this.cmd.gitLog = 'git log --grep="%s" -i -E --format=%s %s..' + (this.options.branch ? this.options.branch : 'HEAD') + ' --';
  this.cmd.gitLogNoTag = 'git log ' + this.options.branch + ' --grep="%s" -i -E --format=%s';
}

module.exports = getGitLogCommands;