Fossil SCM

Stop including settings in the 'Available commands' section of the help web page. Fix typo of '--setting' help option.

mistachkin 2018-01-23 22:34 trunk
Commit 4962fa9e33d89464bde9c2f136314ee555cb0670938e9ed78e7324f2243261cf
1 file changed +3 -1
+3 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -359,18 +359,20 @@
359359
@ <h1>Available commands:</h1>
360360
@ <table border="0"><tr>
361361
for(i=j=0; i<MX_COMMAND; i++){
362362
const char *z = aCommand[i].zName;
363363
if( '/'==*z || strncmp(z,"test",4)==0 ) continue;
364
+ if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue;
364365
j++;
365366
}
366367
n = (j+5)/6;
367368
for(i=j=0; i<MX_COMMAND; i++){
368369
const char *z = aCommand[i].zName;
369370
const char *zBoldOn = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"<b>" :"";
370371
const char *zBoldOff = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"</b>":"";
371372
if( '/'==*z || strncmp(z,"test",4)==0 ) continue;
373
+ if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue;
372374
if( j==0 ){
373375
@ <td valign="top"><ul>
374376
}
375377
@ <li><a href="%R/help?cmd=%s(z)">%s(zBoldOn)%s(z)%s(zBoldOff)</a></li>
376378
j++;
@@ -564,11 +566,11 @@
564566
** setting. Webpage names begin with "/". To display a list of available
565567
** topics, use one of:
566568
**
567569
** %fossil help Show common commands
568570
** %fossil help -a|--all Show both common and auxiliary commands
569
-** %fossil help -s|--settings Show setting names
571
+** %fossil help -s|--setting Show setting names
570572
** %fossil help -t|--test Show test commands only
571573
** %fossil help -x|--aux Show auxiliary commands only
572574
** %fossil help -w|--www Show list of webpages
573575
*/
574576
void help_cmd(void){
575577
--- src/dispatch.c
+++ src/dispatch.c
@@ -359,18 +359,20 @@
359 @ <h1>Available commands:</h1>
360 @ <table border="0"><tr>
361 for(i=j=0; i<MX_COMMAND; i++){
362 const char *z = aCommand[i].zName;
363 if( '/'==*z || strncmp(z,"test",4)==0 ) continue;
 
364 j++;
365 }
366 n = (j+5)/6;
367 for(i=j=0; i<MX_COMMAND; i++){
368 const char *z = aCommand[i].zName;
369 const char *zBoldOn = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"<b>" :"";
370 const char *zBoldOff = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"</b>":"";
371 if( '/'==*z || strncmp(z,"test",4)==0 ) continue;
 
372 if( j==0 ){
373 @ <td valign="top"><ul>
374 }
375 @ <li><a href="%R/help?cmd=%s(z)">%s(zBoldOn)%s(z)%s(zBoldOff)</a></li>
376 j++;
@@ -564,11 +566,11 @@
564 ** setting. Webpage names begin with "/". To display a list of available
565 ** topics, use one of:
566 **
567 ** %fossil help Show common commands
568 ** %fossil help -a|--all Show both common and auxiliary commands
569 ** %fossil help -s|--settings Show setting names
570 ** %fossil help -t|--test Show test commands only
571 ** %fossil help -x|--aux Show auxiliary commands only
572 ** %fossil help -w|--www Show list of webpages
573 */
574 void help_cmd(void){
575
--- src/dispatch.c
+++ src/dispatch.c
@@ -359,18 +359,20 @@
359 @ <h1>Available commands:</h1>
360 @ <table border="0"><tr>
361 for(i=j=0; i<MX_COMMAND; i++){
362 const char *z = aCommand[i].zName;
363 if( '/'==*z || strncmp(z,"test",4)==0 ) continue;
364 if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue;
365 j++;
366 }
367 n = (j+5)/6;
368 for(i=j=0; i<MX_COMMAND; i++){
369 const char *z = aCommand[i].zName;
370 const char *zBoldOn = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"<b>" :"";
371 const char *zBoldOff = aCommand[i].eCmdFlags&CMDFLAG_1ST_TIER?"</b>":"";
372 if( '/'==*z || strncmp(z,"test",4)==0 ) continue;
373 if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)!=0 ) continue;
374 if( j==0 ){
375 @ <td valign="top"><ul>
376 }
377 @ <li><a href="%R/help?cmd=%s(z)">%s(zBoldOn)%s(z)%s(zBoldOff)</a></li>
378 j++;
@@ -564,11 +566,11 @@
566 ** setting. Webpage names begin with "/". To display a list of available
567 ** topics, use one of:
568 **
569 ** %fossil help Show common commands
570 ** %fossil help -a|--all Show both common and auxiliary commands
571 ** %fossil help -s|--setting Show setting names
572 ** %fossil help -t|--test Show test commands only
573 ** %fossil help -x|--aux Show auxiliary commands only
574 ** %fossil help -w|--www Show list of webpages
575 */
576 void help_cmd(void){
577

Keyboard Shortcuts

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