Fossil SCM
In the "fossil all ui" command, shows the "(hidden)" mark after repos that contain "/." in their pathnames.
Commit
b82bdff78918e6fd7e64996bc542f6270c9b384e8227acb78e5cce24b5874351
Parent
c5fea125d9405c1…
1 file changed
+3
+3
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1291,10 +1291,13 @@ | ||
| 1291 | 1291 | if( sqlite3_strglob("*.fossil", zName)!=0 ){ |
| 1292 | 1292 | /* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands |
| 1293 | 1293 | ** do not work for repositories whose names do not end in ".fossil". |
| 1294 | 1294 | ** So do not hyperlink those cases. */ |
| 1295 | 1295 | @ <li>%h(zName)</li> |
| 1296 | + } else if( sqlite3_strglob("*/.*", zName)==0 ){ | |
| 1297 | + /* Do not show hidden repos */ | |
| 1298 | + @ <li>%h(zName) (hidden)</li> | |
| 1296 | 1299 | } else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){ |
| 1297 | 1300 | @ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li> |
| 1298 | 1301 | }else{ |
| 1299 | 1302 | @ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li> |
| 1300 | 1303 | } |
| 1301 | 1304 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1291,10 +1291,13 @@ | |
| 1291 | if( sqlite3_strglob("*.fossil", zName)!=0 ){ |
| 1292 | /* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands |
| 1293 | ** do not work for repositories whose names do not end in ".fossil". |
| 1294 | ** So do not hyperlink those cases. */ |
| 1295 | @ <li>%h(zName)</li> |
| 1296 | } else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){ |
| 1297 | @ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li> |
| 1298 | }else{ |
| 1299 | @ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li> |
| 1300 | } |
| 1301 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1291,10 +1291,13 @@ | |
| 1291 | if( sqlite3_strglob("*.fossil", zName)!=0 ){ |
| 1292 | /* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands |
| 1293 | ** do not work for repositories whose names do not end in ".fossil". |
| 1294 | ** So do not hyperlink those cases. */ |
| 1295 | @ <li>%h(zName)</li> |
| 1296 | } else if( sqlite3_strglob("*/.*", zName)==0 ){ |
| 1297 | /* Do not show hidden repos */ |
| 1298 | @ <li>%h(zName) (hidden)</li> |
| 1299 | } else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){ |
| 1300 | @ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li> |
| 1301 | }else{ |
| 1302 | @ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li> |
| 1303 | } |
| 1304 |