File tree Expand file tree Collapse file tree 4 files changed +190
-122
lines changed
Expand file tree Collapse file tree 4 files changed +190
-122
lines changed Original file line number Diff line number Diff line change 5050 "main" : " ./src/main.js" ,
5151 "dependencies" : {
5252 "copy-paste" : " ^1.3.0" ,
53- "diff2html" : " ^2.0.8 " ,
53+ "diff2html" : " ^2.0.11 " ,
5454 "extend" : " ^3.0.0" ,
5555 "open" : " ^0.0.5" ,
56- "request" : " ^2.75 .0" ,
57- "yargs" : " ^6.1.1 "
56+ "request" : " ^2.79 .0" ,
57+ "yargs" : " ^6.5.0 "
5858 },
5959 "devDependencies" : {
6060 "codacy-coverage" : " ^2.0.0" ,
61- "eslint" : " ^3.8.0 " ,
62- "eslint-plugin-promise" : " ^3.0 .0" ,
61+ "eslint" : " ^3.12.2 " ,
62+ "eslint-plugin-promise" : " ^3.4 .0" ,
6363 "eslint-plugin-standard" : " ^2.0.1" ,
6464 "istanbul" : " ^0.4.5" ,
65- "mocha" : " ^3.1.2 "
65+ "mocha" : " ^3.2.0 "
6666 },
6767 "license" : " MIT" ,
6868 "files" : [
Original file line number Diff line number Diff line change 4848 return '"' + arg + '"' ; // wrap parameters
4949 } ) . join ( ' ' ) ;
5050 } else {
51- gitArgs = '-M HEAD' ;
51+ gitArgs = '-M -C HEAD' ;
5252 }
5353
5454 var diffCommand = 'git diff ' + gitArgs ;
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ var utils = require('./utils.js').Utils;
1313
1414var yargs = require ( 'yargs' ) ;
1515
16+ var currentYear = new Date ( ) . getFullYear ( ) ;
17+
1618var argv = yargs . usage ( 'Usage: diff2html [options] -- [diff args]' )
1719 . options ( {
1820 's' : {
@@ -30,7 +32,7 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
3032 describe : 'Synchronised horizontal scroll' ,
3133 type : 'string' ,
3234 choices : [ 'enabled' , 'disabled' ] ,
33- default : 'enabled '
35+ default : 'disabled '
3436 }
3537 } )
3638 . options ( {
@@ -49,7 +51,7 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
4951 nargs : 1 ,
5052 type : 'string' ,
5153 choices : [ 'lines' , 'words' , 'none' ] ,
52- default : 'words '
54+ default : 'none '
5355 }
5456 } )
5557 . options ( {
@@ -67,7 +69,7 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
6769 describe : 'Diff line matching maximum line comparisons of a block of changes' ,
6870 nargs : 1 ,
6971 type : 'string' ,
70- default : '2500 '
72+ default : '1000 '
7173 }
7274 } )
7375 . options ( {
@@ -138,7 +140,8 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
138140 } )
139141 . help ( 'h' )
140142 . alias ( 'h' , 'help' )
141- . epilog ( '© 2014-2016 rtfpessoa\n' +
143+ . epilog ( '© 2014-' + currentYear + ' rtfpessoa\n' +
144+ 'For more information, check out https://diff2html.xyz/\n' +
142145 'For support, check out https://github.com/rtfpessoa/diff2html-cli' )
143146 . argv ;
144147
You can’t perform that action at this time.
0 commit comments