Fossil SCM

Add short option '-s' for '--numstat' in the diff command.

danield 2025-11-06 16:04 trunk
Commit df119a35bb951cd23a7fd9ac3a5c490d0309e898ab90d19ae548a2eb023d71d4
2 files changed +2 -2 +1 -1
+2 -2
--- src/diff.c
+++ src/diff.c
@@ -3249,11 +3249,11 @@
32493249
** --json Output formatted as JSON
32503250
** --label NAME Column label. Can be repeated once.
32513251
** -n|--linenum Show line numbers DIFF_LINENO
32523252
** -N|--new-file Alias for --verbose
32533253
** --noopt Disable optimization DIFF_NOOPT
3254
-** --numstat Show change counts DIFF_NUMSTAT
3254
+** -s|--numstat Show change counts DIFF_NUMSTAT
32553255
** --strip-trailing-cr Strip trailing CR DIFF_STRIP_EOLCR
32563256
** --tcl Tcl-formatted output used internally by --tk
32573257
** --unified Unified diff. ~DIFF_SIDEBYSIDE
32583258
** -v|--verbose Show complete text of added or deleted files
32593259
** -w|--ignore-all-space Ignore all whitespaces DIFF_IGNORE_ALLWS
@@ -3324,11 +3324,11 @@
33243324
if( pCfg->azLabel[0] ){
33253325
pCfg->azLabel[1] = find_option("label",0,1);
33263326
}
33273327
if( find_option("linenum","n",0)!=0 ) diffFlags |= DIFF_LINENO;
33283328
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;
33303330
if( find_option("versions","h",0)!=0 ) diffFlags |= DIFF_SHOW_VERS;
33313331
if( find_option("dark",0,0)!=0 ) diffFlags |= DIFF_DARKMODE;
33323332
if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT;
33333333
if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF;
33343334
if( find_option("internal","i",0)==0
33353335
--- 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 @@
13561356
** -i|--internal Use internal diff logic
13571357
** --invert Invert the diff
13581358
** --json Output formatted as JSON
13591359
** -n|--linenum Show line numbers
13601360
** -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
13621362
** file, omitting the diff. When combined with
13631363
** --brief, show only the total row.
13641364
** -y|--side-by-side Side-by-side diff
13651365
** --strip-trailing-cr Strip trailing CR
13661366
** --tcl Tcl-formatted output used internally by --tk
13671367
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button