From 96807ddc7879fc4810710dc96232f3109376c82c Mon Sep 17 00:00:00 2001 From: Jim Fleming Date: Mon, 12 May 2014 10:21:30 -0700 Subject: [PATCH] Making --format the default action; removing -b git diff flag to include whitespace changes --- run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.js b/run.js index 305d6e6..3a2553d 100644 --- a/run.js +++ b/run.js @@ -19,7 +19,7 @@ var argv = require('minimist')(process.argv.slice(2), { 'default': { comments: true, diff: false, - format: false, + format: true, list: false, write: false, }, @@ -53,7 +53,7 @@ if (argv.help || (!argv.format && !argv.search && !argv.rewrite)) { function diff(pathA, pathB, callback) { child_process.exec([ - 'git', 'diff', '--ignore-space-at-eol', '-b', '--no-index', '--', pathA, pathB + 'git', 'diff', '--ignore-space-at-eol', '--no-index', '--', pathA, pathB ].join(' '), callback); }