Fossil SCM
Document some more options of fossil branch new: --nosign, --user-override and --date-override. Fix a typo in fossil branch ls docco.
Commit
7727eb12b02e495fa3c356d0c4c13df3a5a5c72f
Parent
4290a801a095aa8…
1 file changed
+12
-8
+12
-8
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -20,12 +20,12 @@ | ||
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include "branch.h" |
| 22 | 22 | #include <assert.h> |
| 23 | 23 | |
| 24 | 24 | /* |
| 25 | -** fossil branch new BRANCH-NAME ?ORIGIN-CHECK-IN? ?-bgcolor COLOR? | |
| 26 | -** argv0 argv1 argv2 argv3 argv4 | |
| 25 | +** fossil branch new NAME BASIS ?OPTIONS? | |
| 26 | +** argv0 argv1 argv2 argv3 argv4 | |
| 27 | 27 | */ |
| 28 | 28 | void branch_new(void){ |
| 29 | 29 | int rootid; /* RID of the root check-in - what we branch off of */ |
| 30 | 30 | int brid; /* RID of the branch check-in */ |
| 31 | 31 | int noSign; /* True if the branch is unsigned */ |
| @@ -48,11 +48,11 @@ | ||
| 48 | 48 | isPrivate = find_option("private",0,0)!=0; |
| 49 | 49 | zDateOvrd = find_option("date-override",0,1); |
| 50 | 50 | zUserOvrd = find_option("user-override",0,1); |
| 51 | 51 | verify_all_options(); |
| 52 | 52 | if( g.argc<5 ){ |
| 53 | - usage("new BRANCH-NAME CHECK-IN ?-bgcolor COLOR?"); | |
| 53 | + usage("new BRANCH-NAME BASIS ?OPTIONS?"); | |
| 54 | 54 | } |
| 55 | 55 | db_find_and_open_repository(0, 0); |
| 56 | 56 | noSign = db_get_int("omitsign", 0)|noSign; |
| 57 | 57 | |
| 58 | 58 | /* fossil branch new name */ |
| @@ -226,18 +226,22 @@ | ||
| 226 | 226 | ** Usage: %fossil branch SUBCOMMAND ... ?OPTIONS? |
| 227 | 227 | ** |
| 228 | 228 | ** Run various subcommands to manage branches of the open repository or |
| 229 | 229 | ** of the repository identified by the -R or --repository option. |
| 230 | 230 | ** |
| 231 | -** %fossil branch new BRANCH-NAME BASIS ?--bgcolor COLOR? ?--private? | |
| 231 | +** %fossil branch new BRANCH-NAME BASIS ?OPTIONS? | |
| 232 | 232 | ** |
| 233 | 233 | ** Create a new branch BRANCH-NAME off of check-in BASIS. |
| 234 | -** You can optionally give the branch a default color. The | |
| 235 | -** --private option makes the branch private. | |
| 234 | +** Supported options for this subcommand include: | |
| 235 | +** --private branch is private (i.e., remains local) | |
| 236 | +** --bgcolor COLOR use COLOR instead of automatic background | |
| 237 | +** --nosign do not sign contents on this branch | |
| 238 | +** --date-override DATE DATE to use instead of 'now' | |
| 239 | +** --user-override USER USER to use instead of the current default | |
| 236 | 240 | ** |
| 237 | -** %fossil branch list ?-all | --closed? | |
| 238 | -** %fossil branch ls ?-all | --closed? | |
| 241 | +** %fossil branch list ?--all | --closed? | |
| 242 | +** %fossil branch ls ?--all | --closed? | |
| 239 | 243 | ** |
| 240 | 244 | ** List all branches. Use --all or --closed to list all branches |
| 241 | 245 | ** or closed branches. The default is to show only open branches. |
| 242 | 246 | ** |
| 243 | 247 | ** Options: |
| 244 | 248 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -20,12 +20,12 @@ | |
| 20 | #include "config.h" |
| 21 | #include "branch.h" |
| 22 | #include <assert.h> |
| 23 | |
| 24 | /* |
| 25 | ** fossil branch new BRANCH-NAME ?ORIGIN-CHECK-IN? ?-bgcolor COLOR? |
| 26 | ** argv0 argv1 argv2 argv3 argv4 |
| 27 | */ |
| 28 | void branch_new(void){ |
| 29 | int rootid; /* RID of the root check-in - what we branch off of */ |
| 30 | int brid; /* RID of the branch check-in */ |
| 31 | int noSign; /* True if the branch is unsigned */ |
| @@ -48,11 +48,11 @@ | |
| 48 | isPrivate = find_option("private",0,0)!=0; |
| 49 | zDateOvrd = find_option("date-override",0,1); |
| 50 | zUserOvrd = find_option("user-override",0,1); |
| 51 | verify_all_options(); |
| 52 | if( g.argc<5 ){ |
| 53 | usage("new BRANCH-NAME CHECK-IN ?-bgcolor COLOR?"); |
| 54 | } |
| 55 | db_find_and_open_repository(0, 0); |
| 56 | noSign = db_get_int("omitsign", 0)|noSign; |
| 57 | |
| 58 | /* fossil branch new name */ |
| @@ -226,18 +226,22 @@ | |
| 226 | ** Usage: %fossil branch SUBCOMMAND ... ?OPTIONS? |
| 227 | ** |
| 228 | ** Run various subcommands to manage branches of the open repository or |
| 229 | ** of the repository identified by the -R or --repository option. |
| 230 | ** |
| 231 | ** %fossil branch new BRANCH-NAME BASIS ?--bgcolor COLOR? ?--private? |
| 232 | ** |
| 233 | ** Create a new branch BRANCH-NAME off of check-in BASIS. |
| 234 | ** You can optionally give the branch a default color. The |
| 235 | ** --private option makes the branch private. |
| 236 | ** |
| 237 | ** %fossil branch list ?-all | --closed? |
| 238 | ** %fossil branch ls ?-all | --closed? |
| 239 | ** |
| 240 | ** List all branches. Use --all or --closed to list all branches |
| 241 | ** or closed branches. The default is to show only open branches. |
| 242 | ** |
| 243 | ** Options: |
| 244 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -20,12 +20,12 @@ | |
| 20 | #include "config.h" |
| 21 | #include "branch.h" |
| 22 | #include <assert.h> |
| 23 | |
| 24 | /* |
| 25 | ** fossil branch new NAME BASIS ?OPTIONS? |
| 26 | ** argv0 argv1 argv2 argv3 argv4 |
| 27 | */ |
| 28 | void branch_new(void){ |
| 29 | int rootid; /* RID of the root check-in - what we branch off of */ |
| 30 | int brid; /* RID of the branch check-in */ |
| 31 | int noSign; /* True if the branch is unsigned */ |
| @@ -48,11 +48,11 @@ | |
| 48 | isPrivate = find_option("private",0,0)!=0; |
| 49 | zDateOvrd = find_option("date-override",0,1); |
| 50 | zUserOvrd = find_option("user-override",0,1); |
| 51 | verify_all_options(); |
| 52 | if( g.argc<5 ){ |
| 53 | usage("new BRANCH-NAME BASIS ?OPTIONS?"); |
| 54 | } |
| 55 | db_find_and_open_repository(0, 0); |
| 56 | noSign = db_get_int("omitsign", 0)|noSign; |
| 57 | |
| 58 | /* fossil branch new name */ |
| @@ -226,18 +226,22 @@ | |
| 226 | ** Usage: %fossil branch SUBCOMMAND ... ?OPTIONS? |
| 227 | ** |
| 228 | ** Run various subcommands to manage branches of the open repository or |
| 229 | ** of the repository identified by the -R or --repository option. |
| 230 | ** |
| 231 | ** %fossil branch new BRANCH-NAME BASIS ?OPTIONS? |
| 232 | ** |
| 233 | ** Create a new branch BRANCH-NAME off of check-in BASIS. |
| 234 | ** Supported options for this subcommand include: |
| 235 | ** --private branch is private (i.e., remains local) |
| 236 | ** --bgcolor COLOR use COLOR instead of automatic background |
| 237 | ** --nosign do not sign contents on this branch |
| 238 | ** --date-override DATE DATE to use instead of 'now' |
| 239 | ** --user-override USER USER to use instead of the current default |
| 240 | ** |
| 241 | ** %fossil branch list ?--all | --closed? |
| 242 | ** %fossil branch ls ?--all | --closed? |
| 243 | ** |
| 244 | ** List all branches. Use --all or --closed to list all branches |
| 245 | ** or closed branches. The default is to show only open branches. |
| 246 | ** |
| 247 | ** Options: |
| 248 |