Fossil SCM
Remove the unreachable usage() from the "fossil branch" command.
Commit
90e75800c1149a4750db6b4517f050968d00f069
Parent
fe46cc6532a3a1b…
1 file changed
-3
-3
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -252,13 +252,10 @@ | ||
| 252 | 252 | */ |
| 253 | 253 | void branch_cmd(void){ |
| 254 | 254 | int n; |
| 255 | 255 | const char *zCmd = "list"; |
| 256 | 256 | db_find_and_open_repository(0, 0); |
| 257 | - if( g.argc<2 ){ | |
| 258 | - usage("new|list|ls ..."); | |
| 259 | - } | |
| 260 | 257 | if( g.argc>=3 ) zCmd = g.argv[2]; |
| 261 | 258 | n = strlen(zCmd); |
| 262 | 259 | if( strncmp(zCmd,"new",n)==0 ){ |
| 263 | 260 | branch_new(); |
| 264 | 261 | }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){ |
| 265 | 262 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -252,13 +252,10 @@ | |
| 252 | */ |
| 253 | void branch_cmd(void){ |
| 254 | int n; |
| 255 | const char *zCmd = "list"; |
| 256 | db_find_and_open_repository(0, 0); |
| 257 | if( g.argc<2 ){ |
| 258 | usage("new|list|ls ..."); |
| 259 | } |
| 260 | if( g.argc>=3 ) zCmd = g.argv[2]; |
| 261 | n = strlen(zCmd); |
| 262 | if( strncmp(zCmd,"new",n)==0 ){ |
| 263 | branch_new(); |
| 264 | }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){ |
| 265 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -252,13 +252,10 @@ | |
| 252 | */ |
| 253 | void branch_cmd(void){ |
| 254 | int n; |
| 255 | const char *zCmd = "list"; |
| 256 | db_find_and_open_repository(0, 0); |
| 257 | if( g.argc>=3 ) zCmd = g.argv[2]; |
| 258 | n = strlen(zCmd); |
| 259 | if( strncmp(zCmd,"new",n)==0 ){ |
| 260 | branch_new(); |
| 261 | }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){ |
| 262 |