diff --git a/lib/config.js b/lib/config.js index fd7c91d..f13bac1 100644 --- a/lib/config.js +++ b/lib/config.js @@ -25,4 +25,8 @@ export default { type: 'boolean', default: false }, + extraCliParams : { + type: 'string', + default: '' + }, } diff --git a/lib/util/GitCommander.js b/lib/util/GitCommander.js index 8f5395f..06774e7 100644 --- a/lib/util/GitCommander.js +++ b/lib/util/GitCommander.js @@ -76,6 +76,9 @@ export default class GitCommander { } args.push(fileName); + + const extraArgs = atom.config.get('git-blame.extraCliParams') + args.push(...extraArgs.split(' ')) // Execute blame command and parse this.exec(args, function(err, blameStdOut) {