Fossil SCM
Add short option '-s' for '--numstat' in the diff command.
Commit
df119a35bb951cd23a7fd9ac3a5c490d0309e898ab90d19ae548a2eb023d71d4
Parent
3fe737a86aade31…
2 files changed
+2
-2
+1
-1
+2
-2
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -3249,11 +3249,11 @@ | ||
| 3249 | 3249 | ** --json Output formatted as JSON |
| 3250 | 3250 | ** --label NAME Column label. Can be repeated once. |
| 3251 | 3251 | ** -n|--linenum Show line numbers DIFF_LINENO |
| 3252 | 3252 | ** -N|--new-file Alias for --verbose |
| 3253 | 3253 | ** --noopt Disable optimization DIFF_NOOPT |
| 3254 | -** --numstat Show change counts DIFF_NUMSTAT | |
| 3254 | +** -s|--numstat Show change counts DIFF_NUMSTAT | |
| 3255 | 3255 | ** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR |
| 3256 | 3256 | ** --tcl Tcl-formatted output used internally by --tk |
| 3257 | 3257 | ** --unified Unified diff. ~DIFF_SIDEBYSIDE |
| 3258 | 3258 | ** -v|--verbose Show complete text of added or deleted files |
| 3259 | 3259 | ** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS |
| @@ -3324,11 +3324,11 @@ | ||
| 3324 | 3324 | if( pCfg->azLabel[0] ){ |
| 3325 | 3325 | pCfg->azLabel[1] = find_option("label",0,1); |
| 3326 | 3326 | } |
| 3327 | 3327 | if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO; |
| 3328 | 3328 | if( find_option("noopt",0,0)!=0 ) diffFlags |= DIFF_NOOPT; |
| 3329 | - if( find_option("numstat",0,0)!=0 ) diffFlags |= DIFF_NUMSTAT; | |
| 3329 | + if( find_option("numstat","s",0)!=0 ) diffFlags |= DIFF_NUMSTAT; | |
| 3330 | 3330 | if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS; |
| 3331 | 3331 | if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE; |
| 3332 | 3332 | if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT; |
| 3333 | 3333 | if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF; |
| 3334 | 3334 | if( find_option("internal","i",0)==0 |
| 3335 | 3335 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -3249,11 +3249,11 @@ | |
| 3249 | ** --json Output formatted as JSON |
| 3250 | ** --label NAME Column label. Can be repeated once. |
| 3251 | ** -n|--linenum Show line numbers DIFF_LINENO |
| 3252 | ** -N|--new-file Alias for --verbose |
| 3253 | ** --noopt Disable optimization DIFF_NOOPT |
| 3254 | ** --numstat Show change counts DIFF_NUMSTAT |
| 3255 | ** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR |
| 3256 | ** --tcl Tcl-formatted output used internally by --tk |
| 3257 | ** --unified Unified diff. ~DIFF_SIDEBYSIDE |
| 3258 | ** -v|--verbose Show complete text of added or deleted files |
| 3259 | ** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS |
| @@ -3324,11 +3324,11 @@ | |
| 3324 | if( pCfg->azLabel[0] ){ |
| 3325 | pCfg->azLabel[1] = find_option("label",0,1); |
| 3326 | } |
| 3327 | if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO; |
| 3328 | if( find_option("noopt",0,0)!=0 ) diffFlags |= DIFF_NOOPT; |
| 3329 | if( find_option("numstat",0,0)!=0 ) diffFlags |= DIFF_NUMSTAT; |
| 3330 | if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS; |
| 3331 | if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE; |
| 3332 | if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT; |
| 3333 | if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF; |
| 3334 | if( find_option("internal","i",0)==0 |
| 3335 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -3249,11 +3249,11 @@ | |
| 3249 | ** --json Output formatted as JSON |
| 3250 | ** --label NAME Column label. Can be repeated once. |
| 3251 | ** -n|--linenum Show line numbers DIFF_LINENO |
| 3252 | ** -N|--new-file Alias for --verbose |
| 3253 | ** --noopt Disable optimization DIFF_NOOPT |
| 3254 | ** -s|--numstat Show change counts DIFF_NUMSTAT |
| 3255 | ** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR |
| 3256 | ** --tcl Tcl-formatted output used internally by --tk |
| 3257 | ** --unified Unified diff. ~DIFF_SIDEBYSIDE |
| 3258 | ** -v|--verbose Show complete text of added or deleted files |
| 3259 | ** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS |
| @@ -3324,11 +3324,11 @@ | |
| 3324 | if( pCfg->azLabel[0] ){ |
| 3325 | pCfg->azLabel[1] = find_option("label",0,1); |
| 3326 | } |
| 3327 | if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO; |
| 3328 | if( find_option("noopt",0,0)!=0 ) diffFlags |= DIFF_NOOPT; |
| 3329 | if( find_option("numstat","s",0)!=0 ) diffFlags |= DIFF_NUMSTAT; |
| 3330 | if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS; |
| 3331 | if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE; |
| 3332 | if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT; |
| 3333 | if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF; |
| 3334 | if( find_option("internal","i",0)==0 |
| 3335 |
+1
-1
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -1356,11 +1356,11 @@ | ||
| 1356 | 1356 | ** -i|--internal Use internal diff logic |
| 1357 | 1357 | ** --invert Invert the diff |
| 1358 | 1358 | ** --json Output formatted as JSON |
| 1359 | 1359 | ** -n|--linenum Show line numbers |
| 1360 | 1360 | ** -N|--new-file Alias for --verbose |
| 1361 | -** --numstat Show the number of added and deleted lines per | |
| 1361 | +** -s|--numstat Show the number of added and deleted lines per | |
| 1362 | 1362 | ** file, omitting the diff. When combined with |
| 1363 | 1363 | ** --brief, show only the total row. |
| 1364 | 1364 | ** -y|--side-by-side Side-by-side diff |
| 1365 | 1365 | ** --strip-trailing-cr Strip trailing CR |
| 1366 | 1366 | ** --tcl Tcl-formatted output used internally by --tk |
| 1367 | 1367 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -1356,11 +1356,11 @@ | |
| 1356 | ** -i|--internal Use internal diff logic |
| 1357 | ** --invert Invert the diff |
| 1358 | ** --json Output formatted as JSON |
| 1359 | ** -n|--linenum Show line numbers |
| 1360 | ** -N|--new-file Alias for --verbose |
| 1361 | ** --numstat Show the number of added and deleted lines per |
| 1362 | ** file, omitting the diff. When combined with |
| 1363 | ** --brief, show only the total row. |
| 1364 | ** -y|--side-by-side Side-by-side diff |
| 1365 | ** --strip-trailing-cr Strip trailing CR |
| 1366 | ** --tcl Tcl-formatted output used internally by --tk |
| 1367 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -1356,11 +1356,11 @@ | |
| 1356 | ** -i|--internal Use internal diff logic |
| 1357 | ** --invert Invert the diff |
| 1358 | ** --json Output formatted as JSON |
| 1359 | ** -n|--linenum Show line numbers |
| 1360 | ** -N|--new-file Alias for --verbose |
| 1361 | ** -s|--numstat Show the number of added and deleted lines per |
| 1362 | ** file, omitting the diff. When combined with |
| 1363 | ** --brief, show only the total row. |
| 1364 | ** -y|--side-by-side Side-by-side diff |
| 1365 | ** --strip-trailing-cr Strip trailing CR |
| 1366 | ** --tcl Tcl-formatted output used internally by --tk |
| 1367 |