Fossil SCM

For the --page option to the "fossil ui" command, ignore any initial leading "/" on the page name.

drh 2021-07-06 15:58 trunk
Commit 10f962420717ccb91c2970a589689f9f3f5559579b5797d03bf52d36fbd179b9
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -2938,10 +2938,11 @@
29382938
Th_InitTraceLog();
29392939
zPort = find_option("port", "P", 1);
29402940
isUiCmd = g.argv[1][0]=='u';
29412941
if( isUiCmd ){
29422942
zInitPage = find_option("page", 0, 1);
2943
+ if( zInitPage[0]=='/' ) zInitPage++;
29432944
zFossilCmd = find_option("fossilcmd", 0, 1);
29442945
}
29452946
zNotFound = find_option("notfound", 0, 1);
29462947
allowRepoList = find_option("repolist",0,0)!=0;
29472948
if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
29482949
--- src/main.c
+++ src/main.c
@@ -2938,10 +2938,11 @@
2938 Th_InitTraceLog();
2939 zPort = find_option("port", "P", 1);
2940 isUiCmd = g.argv[1][0]=='u';
2941 if( isUiCmd ){
2942 zInitPage = find_option("page", 0, 1);
 
2943 zFossilCmd = find_option("fossilcmd", 0, 1);
2944 }
2945 zNotFound = find_option("notfound", 0, 1);
2946 allowRepoList = find_option("repolist",0,0)!=0;
2947 if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
2948
--- src/main.c
+++ src/main.c
@@ -2938,10 +2938,11 @@
2938 Th_InitTraceLog();
2939 zPort = find_option("port", "P", 1);
2940 isUiCmd = g.argv[1][0]=='u';
2941 if( isUiCmd ){
2942 zInitPage = find_option("page", 0, 1);
2943 if( zInitPage[0]=='/' ) zInitPage++;
2944 zFossilCmd = find_option("fossilcmd", 0, 1);
2945 }
2946 zNotFound = find_option("notfound", 0, 1);
2947 allowRepoList = find_option("repolist",0,0)!=0;
2948 if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
2949

Keyboard Shortcuts

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