Skip to content

Commit 96807dd

Browse files
committed
Making --format the default action; removing -b git diff flag to include whitespace changes
1 parent 127109c commit 96807dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var argv = require('minimist')(process.argv.slice(2), {
1919
'default': {
2020
comments: true,
2121
diff: false,
22-
format: false,
22+
format: true,
2323
list: false,
2424
write: false,
2525
},
@@ -53,7 +53,7 @@ if (argv.help || (!argv.format && !argv.search && !argv.rewrite)) {
5353

5454
function diff(pathA, pathB, callback) {
5555
child_process.exec([
56-
'git', 'diff', '--ignore-space-at-eol', '-b', '--no-index', '--', pathA, pathB
56+
'git', 'diff', '--ignore-space-at-eol', '--no-index', '--', pathA, pathB
5757
].join(' '), callback);
5858
}
5959

0 commit comments

Comments
 (0)