Fossil SCM
Clean up the fossil bisect summary per [https://fossil-scm.org/forum/forumpost/00503372fc]
Commit
6e45212a5bea9605bf2f3752a0cd903c5da3c3284073003e06cd567baefec2b0
Parent
1620841523844e2…
1 file changed
+3
-2
+3
-2
| --- src/bisect.c | ||
| +++ src/bisect.c | ||
| @@ -442,11 +442,11 @@ | ||
| 442 | 442 | int n; |
| 443 | 443 | const char *zCmd; |
| 444 | 444 | int foundCmd = 0; |
| 445 | 445 | db_must_be_within_tree(); |
| 446 | 446 | if( g.argc<3 ){ |
| 447 | - usage("bad|good|log|next|options|reset|skip|status|undo"); | |
| 447 | + goto usage; | |
| 448 | 448 | } |
| 449 | 449 | zCmd = g.argv[2]; |
| 450 | 450 | n = strlen(zCmd); |
| 451 | 451 | if( n==0 ) zCmd = "-"; |
| 452 | 452 | if( strncmp(zCmd, "bad", n)==0 ){ |
| @@ -610,8 +610,9 @@ | ||
| 610 | 610 | || strncmp(zCmd, "status", n)==0 |
| 611 | 611 | ){ |
| 612 | 612 | int fAll = find_option("all", "a", 0)!=0; |
| 613 | 613 | bisect_list(!fAll); |
| 614 | 614 | }else if( !foundCmd ){ |
| 615 | - usage("bad|good|log|next|options|reset|status|ui|undo"); | |
| 615 | +usage: | |
| 616 | + usage("bad|good|log|chart|next|options|reset|skip|status|ui|undo"); | |
| 616 | 617 | } |
| 617 | 618 | } |
| 618 | 619 |
| --- src/bisect.c | |
| +++ src/bisect.c | |
| @@ -442,11 +442,11 @@ | |
| 442 | int n; |
| 443 | const char *zCmd; |
| 444 | int foundCmd = 0; |
| 445 | db_must_be_within_tree(); |
| 446 | if( g.argc<3 ){ |
| 447 | usage("bad|good|log|next|options|reset|skip|status|undo"); |
| 448 | } |
| 449 | zCmd = g.argv[2]; |
| 450 | n = strlen(zCmd); |
| 451 | if( n==0 ) zCmd = "-"; |
| 452 | if( strncmp(zCmd, "bad", n)==0 ){ |
| @@ -610,8 +610,9 @@ | |
| 610 | || strncmp(zCmd, "status", n)==0 |
| 611 | ){ |
| 612 | int fAll = find_option("all", "a", 0)!=0; |
| 613 | bisect_list(!fAll); |
| 614 | }else if( !foundCmd ){ |
| 615 | usage("bad|good|log|next|options|reset|status|ui|undo"); |
| 616 | } |
| 617 | } |
| 618 |
| --- src/bisect.c | |
| +++ src/bisect.c | |
| @@ -442,11 +442,11 @@ | |
| 442 | int n; |
| 443 | const char *zCmd; |
| 444 | int foundCmd = 0; |
| 445 | db_must_be_within_tree(); |
| 446 | if( g.argc<3 ){ |
| 447 | goto usage; |
| 448 | } |
| 449 | zCmd = g.argv[2]; |
| 450 | n = strlen(zCmd); |
| 451 | if( n==0 ) zCmd = "-"; |
| 452 | if( strncmp(zCmd, "bad", n)==0 ){ |
| @@ -610,8 +610,9 @@ | |
| 610 | || strncmp(zCmd, "status", n)==0 |
| 611 | ){ |
| 612 | int fAll = find_option("all", "a", 0)!=0; |
| 613 | bisect_list(!fAll); |
| 614 | }else if( !foundCmd ){ |
| 615 | usage: |
| 616 | usage("bad|good|log|chart|next|options|reset|skip|status|ui|undo"); |
| 617 | } |
| 618 | } |
| 619 |