Fossil SCM

Clarified the online docs for the "fossil remote REF" command form. It wasn't obvious before that you could give a NAME instead of a URL.

wyoung 2020-08-27 17:56 trunk
Commit 292ba94e6b7fd96d9d212670e7571c13f0fc526c95ee9cd77b643a08771b3533
1 file changed +3 -2
+3 -2
--- src/sync.c
+++ src/sync.c
@@ -394,13 +394,14 @@
394394
** > fossil remote off
395395
**
396396
** Disable the default URL. Use this as a shorthand to prevent
397397
** autosync while in airplane mode, for example.
398398
**
399
-** > fossil remote URL
399
+** > fossil remote REF
400400
**
401
-** Make URL the new default URL. The prior default URL is replaced.
401
+** Make REF the new default URL. The prior default URL is replaced.
402
+** REF can be either an explicit URL or a NAME from a prior "add".
402403
*/
403404
void remote_url_cmd(void){
404405
char *zUrl, *zArg;
405406
int nArg;
406407
db_find_and_open_repository(0, 0);
407408
--- src/sync.c
+++ src/sync.c
@@ -394,13 +394,14 @@
394 ** > fossil remote off
395 **
396 ** Disable the default URL. Use this as a shorthand to prevent
397 ** autosync while in airplane mode, for example.
398 **
399 ** > fossil remote URL
400 **
401 ** Make URL the new default URL. The prior default URL is replaced.
 
402 */
403 void remote_url_cmd(void){
404 char *zUrl, *zArg;
405 int nArg;
406 db_find_and_open_repository(0, 0);
407
--- src/sync.c
+++ src/sync.c
@@ -394,13 +394,14 @@
394 ** > fossil remote off
395 **
396 ** Disable the default URL. Use this as a shorthand to prevent
397 ** autosync while in airplane mode, for example.
398 **
399 ** > fossil remote REF
400 **
401 ** Make REF the new default URL. The prior default URL is replaced.
402 ** REF can be either an explicit URL or a NAME from a prior "add".
403 */
404 void remote_url_cmd(void){
405 char *zUrl, *zArg;
406 int nArg;
407 db_find_and_open_repository(0, 0);
408

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button