Fossil SCM
Fix the /help webpage to accept prefixes on the cmd= query parameter.
Commit
f2f419ea9b66f58dc88a480bdd441cb9e4c636bea111409923b565f741290eb0
Parent
c965636958eb58a…
2 files changed
+1
-1
+2
-2
+1
-1
| --- src/dispatch.c | ||
| +++ src/dispatch.c | ||
| @@ -717,11 +717,11 @@ | ||
| 717 | 717 | const CmdOrPage *pCmd = 0; |
| 718 | 718 | |
| 719 | 719 | style_header("Help: %s", zCmd); |
| 720 | 720 | |
| 721 | 721 | style_submenu_element("Command-List", "%s/help", g.zTop); |
| 722 | - rc = dispatch_name_search(zCmd, CMDFLAG_ANY, &pCmd); | |
| 722 | + rc = dispatch_name_search(zCmd, CMDFLAG_ANY|CMDFLAG_PREFIX, &pCmd); | |
| 723 | 723 | if( *zCmd=='/' ){ |
| 724 | 724 | /* Some of the webpages require query parameters in order to work. |
| 725 | 725 | ** @ <h1>The "<a href='%R%s(zCmd)'>%s(zCmd)</a>" page:</h1> */ |
| 726 | 726 | @ <h1>The "%h(zCmd)" page:</h1> |
| 727 | 727 | }else if( rc==0 && (pCmd->eCmdFlags & CMDFLAG_SETTING)!=0 ){ |
| 728 | 728 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -717,11 +717,11 @@ | |
| 717 | const CmdOrPage *pCmd = 0; |
| 718 | |
| 719 | style_header("Help: %s", zCmd); |
| 720 | |
| 721 | style_submenu_element("Command-List", "%s/help", g.zTop); |
| 722 | rc = dispatch_name_search(zCmd, CMDFLAG_ANY, &pCmd); |
| 723 | if( *zCmd=='/' ){ |
| 724 | /* Some of the webpages require query parameters in order to work. |
| 725 | ** @ <h1>The "<a href='%R%s(zCmd)'>%s(zCmd)</a>" page:</h1> */ |
| 726 | @ <h1>The "%h(zCmd)" page:</h1> |
| 727 | }else if( rc==0 && (pCmd->eCmdFlags & CMDFLAG_SETTING)!=0 ){ |
| 728 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -717,11 +717,11 @@ | |
| 717 | const CmdOrPage *pCmd = 0; |
| 718 | |
| 719 | style_header("Help: %s", zCmd); |
| 720 | |
| 721 | style_submenu_element("Command-List", "%s/help", g.zTop); |
| 722 | rc = dispatch_name_search(zCmd, CMDFLAG_ANY|CMDFLAG_PREFIX, &pCmd); |
| 723 | if( *zCmd=='/' ){ |
| 724 | /* Some of the webpages require query parameters in order to work. |
| 725 | ** @ <h1>The "<a href='%R%s(zCmd)'>%s(zCmd)</a>" page:</h1> */ |
| 726 | @ <h1>The "%h(zCmd)" page:</h1> |
| 727 | }else if( rc==0 && (pCmd->eCmdFlags & CMDFLAG_SETTING)!=0 ){ |
| 728 |
+2
-2
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -217,11 +217,11 @@ | ||
| 217 | 217 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 218 | 218 | ** -v|--verbose Additional (debugging) output |
| 219 | 219 | ** --verily Exchange extra information with the remote |
| 220 | 220 | ** to ensure no content is overlooked |
| 221 | 221 | ** |
| 222 | -** See also: [[clone]], [[configure]], [[push]], [[remote-url]], [[sync]] | |
| 222 | +** See also: [[clone]], [[config]], [[push]], [[remote]], [[sync]] | |
| 223 | 223 | */ |
| 224 | 224 | void pull_cmd(void){ |
| 225 | 225 | unsigned configFlags = 0; |
| 226 | 226 | unsigned syncFlags = SYNC_PULL; |
| 227 | 227 | unsigned urlOmitFlags = 0; |
| @@ -266,11 +266,11 @@ | ||
| 266 | 266 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 267 | 267 | ** -v|--verbose Additional (debugging) output |
| 268 | 268 | ** --verily Exchange extra information with the remote |
| 269 | 269 | ** to ensure no content is overlooked |
| 270 | 270 | ** |
| 271 | -** See also: [[clone]], [[configure]], [[pull]], [[remote-url]], [[sync]] | |
| 271 | +** See also: [[clone]], [[config]], [[pull]], [[remote]], [[sync]] | |
| 272 | 272 | */ |
| 273 | 273 | void push_cmd(void){ |
| 274 | 274 | unsigned configFlags = 0; |
| 275 | 275 | unsigned syncFlags = SYNC_PUSH; |
| 276 | 276 | process_sync_args(&configFlags, &syncFlags, 0, 0); |
| 277 | 277 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -217,11 +217,11 @@ | |
| 217 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 218 | ** -v|--verbose Additional (debugging) output |
| 219 | ** --verily Exchange extra information with the remote |
| 220 | ** to ensure no content is overlooked |
| 221 | ** |
| 222 | ** See also: [[clone]], [[configure]], [[push]], [[remote-url]], [[sync]] |
| 223 | */ |
| 224 | void pull_cmd(void){ |
| 225 | unsigned configFlags = 0; |
| 226 | unsigned syncFlags = SYNC_PULL; |
| 227 | unsigned urlOmitFlags = 0; |
| @@ -266,11 +266,11 @@ | |
| 266 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 267 | ** -v|--verbose Additional (debugging) output |
| 268 | ** --verily Exchange extra information with the remote |
| 269 | ** to ensure no content is overlooked |
| 270 | ** |
| 271 | ** See also: [[clone]], [[configure]], [[pull]], [[remote-url]], [[sync]] |
| 272 | */ |
| 273 | void push_cmd(void){ |
| 274 | unsigned configFlags = 0; |
| 275 | unsigned syncFlags = SYNC_PUSH; |
| 276 | process_sync_args(&configFlags, &syncFlags, 0, 0); |
| 277 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -217,11 +217,11 @@ | |
| 217 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 218 | ** -v|--verbose Additional (debugging) output |
| 219 | ** --verily Exchange extra information with the remote |
| 220 | ** to ensure no content is overlooked |
| 221 | ** |
| 222 | ** See also: [[clone]], [[config]], [[push]], [[remote]], [[sync]] |
| 223 | */ |
| 224 | void pull_cmd(void){ |
| 225 | unsigned configFlags = 0; |
| 226 | unsigned syncFlags = SYNC_PULL; |
| 227 | unsigned urlOmitFlags = 0; |
| @@ -266,11 +266,11 @@ | |
| 266 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 267 | ** -v|--verbose Additional (debugging) output |
| 268 | ** --verily Exchange extra information with the remote |
| 269 | ** to ensure no content is overlooked |
| 270 | ** |
| 271 | ** See also: [[clone]], [[config]], [[pull]], [[remote]], [[sync]] |
| 272 | */ |
| 273 | void push_cmd(void){ |
| 274 | unsigned configFlags = 0; |
| 275 | unsigned syncFlags = SYNC_PUSH; |
| 276 | process_sync_args(&configFlags, &syncFlags, 0, 0); |
| 277 |