Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Document some more options of fossil branch new: --nosign, --user-override and --date-override. Fix a typo in fossil branch ls docco. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | msw-docco |
| Files: | files | file ages | folders |
| SHA1: |
7727eb12b02e495fa3c356d0c4c13df3 |
| User & Date: | martin.weber 2012-04-16 15:53:19.232 |
Context
|
2012-04-19
| ||
| 14:34 | Catch up w/ trunk & document --case-sensitive option in the add and addremove commands. ... (Closed-Leaf check-in: 626a317e5c user: martin.weber tags: msw-docco) | |
|
2012-04-17
| ||
| 22:31 | Merge the msw-docco changes into trunk. ... (check-in: 3c637382b4 user: drh tags: trunk) | |
|
2012-04-16
| ||
| 15:53 | Document some more options of fossil branch new: --nosign, --user-override and --date-override. Fix a typo in fossil branch ls docco. ... (check-in: 7727eb12b0 user: martin.weber tags: msw-docco) | |
|
2012-04-13
| ||
| 22:42 | Fix the /dir webpages to that it treats folders whos names differ only in case as the same folder when case-sensitive is off. ... (check-in: 4290a801a0 user: drh tags: trunk) | |
Changes
Changes to src/branch.c.
| ︙ | ︙ | |||
18 19 20 21 22 23 24 | ** This file contains code used to create new branches within a repository. */ #include "config.h" #include "branch.h" #include <assert.h> /* | | | | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
** This file contains code used to create new branches within a repository.
*/
#include "config.h"
#include "branch.h"
#include <assert.h>
/*
** fossil branch new NAME BASIS ?OPTIONS?
** argv0 argv1 argv2 argv3 argv4
*/
void branch_new(void){
int rootid; /* RID of the root check-in - what we branch off of */
int brid; /* RID of the branch check-in */
int noSign; /* True if the branch is unsigned */
int i; /* Loop counter */
char *zUuid; /* Artifact ID of origin */
|
| ︙ | ︙ | |||
46 47 48 49 50 51 52 |
noSign = find_option("nosign","",0)!=0;
zColor = find_option("bgcolor","c",1);
isPrivate = find_option("private",0,0)!=0;
zDateOvrd = find_option("date-override",0,1);
zUserOvrd = find_option("user-override",0,1);
verify_all_options();
if( g.argc<5 ){
| | | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
noSign = find_option("nosign","",0)!=0;
zColor = find_option("bgcolor","c",1);
isPrivate = find_option("private",0,0)!=0;
zDateOvrd = find_option("date-override",0,1);
zUserOvrd = find_option("user-override",0,1);
verify_all_options();
if( g.argc<5 ){
usage("new BRANCH-NAME BASIS ?OPTIONS?");
}
db_find_and_open_repository(0, 0);
noSign = db_get_int("omitsign", 0)|noSign;
/* fossil branch new name */
zBranch = g.argv[3];
if( zBranch==0 || zBranch[0]==0 ){
|
| ︙ | ︙ | |||
224 225 226 227 228 229 230 | ** COMMAND: branch ** ** Usage: %fossil branch SUBCOMMAND ... ?OPTIONS? ** ** Run various subcommands to manage branches of the open repository or ** of the repository identified by the -R or --repository option. ** | | | | > > > > | | | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | ** COMMAND: branch ** ** Usage: %fossil branch SUBCOMMAND ... ?OPTIONS? ** ** Run various subcommands to manage branches of the open repository or ** of the repository identified by the -R or --repository option. ** ** %fossil branch new BRANCH-NAME BASIS ?OPTIONS? ** ** Create a new branch BRANCH-NAME off of check-in BASIS. ** Supported options for this subcommand include: ** --private branch is private (i.e., remains local) ** --bgcolor COLOR use COLOR instead of automatic background ** --nosign do not sign contents on this branch ** --date-override DATE DATE to use instead of 'now' ** --user-override USER USER to use instead of the current default ** ** %fossil branch list ?--all | --closed? ** %fossil branch ls ?--all | --closed? ** ** List all branches. Use --all or --closed to list all branches ** or closed branches. The default is to show only open branches. ** ** Options: ** -R|--repository FILE Run commands on repository FILE */ |
| ︙ | ︙ |