Fossil SCM
added "clonly" command as alternate form of "clone --no-open"
Commit
3598e3ae53d0a7238988e39a0e05431f0fc231c5c672a20551a389fd0f23a674
Parent
b3f3a898c8dd975…
1 file changed
+5
+5
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -79,10 +79,11 @@ | ||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | /* |
| 83 | 83 | ** COMMAND: clone |
| 84 | +** COMMAND: clonly | |
| 84 | 85 | ** |
| 85 | 86 | ** Usage: %fossil clone ?OPTIONS? URI ?FILENAME? |
| 86 | 87 | ** |
| 87 | 88 | ** Make a clone of a repository specified by URI in the local |
| 88 | 89 | ** file named FILENAME. If FILENAME is omitted, then an appropriate |
| @@ -152,10 +153,14 @@ | ||
| 152 | 153 | int noOpen = find_option("no-open",0,0)!=0; |
| 153 | 154 | int allowNested = find_option("nested",0,0)!=0; /* Used by open */ |
| 154 | 155 | const char *zRepo = 0; /* Name of the new local repository file */ |
| 155 | 156 | const char *zWorkDir = 0; /* Open in this directory, if not zero */ |
| 156 | 157 | |
| 158 | + /* Support alt command that is less verbose than clone --no-open */ | |
| 159 | + if(0==fossil_strcmp("clonly", g.zCmdName)){ | |
| 160 | + noOpen = 1; | |
| 161 | + } | |
| 157 | 162 | |
| 158 | 163 | /* Also clone private branches */ |
| 159 | 164 | if( find_option("private",0,0)!=0 ) syncFlags |= SYNC_PRIVATE; |
| 160 | 165 | if( find_option("once",0,0)!=0) urlFlags &= ~URL_REMEMBER; |
| 161 | 166 | if( find_option("save-http-password",0,0)!=0 ){ |
| 162 | 167 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -79,10 +79,11 @@ | |
| 79 | } |
| 80 | |
| 81 | |
| 82 | /* |
| 83 | ** COMMAND: clone |
| 84 | ** |
| 85 | ** Usage: %fossil clone ?OPTIONS? URI ?FILENAME? |
| 86 | ** |
| 87 | ** Make a clone of a repository specified by URI in the local |
| 88 | ** file named FILENAME. If FILENAME is omitted, then an appropriate |
| @@ -152,10 +153,14 @@ | |
| 152 | int noOpen = find_option("no-open",0,0)!=0; |
| 153 | int allowNested = find_option("nested",0,0)!=0; /* Used by open */ |
| 154 | const char *zRepo = 0; /* Name of the new local repository file */ |
| 155 | const char *zWorkDir = 0; /* Open in this directory, if not zero */ |
| 156 | |
| 157 | |
| 158 | /* Also clone private branches */ |
| 159 | if( find_option("private",0,0)!=0 ) syncFlags |= SYNC_PRIVATE; |
| 160 | if( find_option("once",0,0)!=0) urlFlags &= ~URL_REMEMBER; |
| 161 | if( find_option("save-http-password",0,0)!=0 ){ |
| 162 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -79,10 +79,11 @@ | |
| 79 | } |
| 80 | |
| 81 | |
| 82 | /* |
| 83 | ** COMMAND: clone |
| 84 | ** COMMAND: clonly |
| 85 | ** |
| 86 | ** Usage: %fossil clone ?OPTIONS? URI ?FILENAME? |
| 87 | ** |
| 88 | ** Make a clone of a repository specified by URI in the local |
| 89 | ** file named FILENAME. If FILENAME is omitted, then an appropriate |
| @@ -152,10 +153,14 @@ | |
| 153 | int noOpen = find_option("no-open",0,0)!=0; |
| 154 | int allowNested = find_option("nested",0,0)!=0; /* Used by open */ |
| 155 | const char *zRepo = 0; /* Name of the new local repository file */ |
| 156 | const char *zWorkDir = 0; /* Open in this directory, if not zero */ |
| 157 | |
| 158 | /* Support alt command that is less verbose than clone --no-open */ |
| 159 | if(0==fossil_strcmp("clonly", g.zCmdName)){ |
| 160 | noOpen = 1; |
| 161 | } |
| 162 | |
| 163 | /* Also clone private branches */ |
| 164 | if( find_option("private",0,0)!=0 ) syncFlags |= SYNC_PRIVATE; |
| 165 | if( find_option("once",0,0)!=0) urlFlags &= ~URL_REMEMBER; |
| 166 | if( find_option("save-http-password",0,0)!=0 ){ |
| 167 |