Fossil SCM

Improved "help" for the new "fossil get" command. No code changes.

drh 2026-01-05 13:41 trunk
Commit 692140d91745dda41c9fc8573e09208a4924cf29b27699803c1fc2cad56ee673
1 file changed +16 -19
+16 -19
--- src/checkout.c
+++ src/checkout.c
@@ -438,38 +438,35 @@
438438
** COMMAND: get
439439
**
440440
** Usage: %fossil get URL ?VERSION? ?OPTIONS?
441441
**
442442
** Download a single check-in from a remote repository named URL and
443
-** unpack all of the files locally. The check-in is identified by VERSION.
444
-**
445
-** URL can be a traditional URL like one of:
443
+** unpack all of the files into a subdirectory. The specific check-in
444
+** to download is identified by VERSION. If VERSION is omitted, the
445
+** latest trunk check-in is used. The URL can be a traditional "https:",
446
+** "ssh:", or "file:" URL similar to the examples shown below, or it can
447
+** be the name of a local repository/
446448
**
447449
** * https://domain.com/project
448450
** * ssh://my-server/project.fossil
449451
** * file:/home/user/Fossils/project.fossil
450452
**
451
-** Or URL can be just the name of a local repository without the "file:"
452
-** prefix.
453
-**
454453
** This command works by downloading an SQL archive of the requested
455454
** check-in and then extracting all the files from the archive.
456455
**
457456
** Options:
458
-** --dest DIRECTORY Extract files into DIRECTORY. Use "--dest ."
459
-** to extract into the local directory.
460
-**
461
-** -f|--force Overwrite existing files
462
-**
463
-** --list List all the files that would have been checked
464
-** out but do not actually write anything to the
465
-** filesystem.
466
-**
467
-** --sqlar ARCHIVE Store the check-out in an SQL-archive rather
468
-** than unpacking them into separate files.
469
-**
470
-** -v|--verbose Show all files as they are extracted
457
+** --dest DIRECTORY Extract files into DIRECTORY. Use "--dest ." to
458
+** extract into the local directory. If this option is
459
+** omitted, Fossil invents a subdirectory name derived
460
+** from base filename in the URL and from the VERSION.
461
+** -f|--force Overwrite existing files
462
+** --list List all the files that would have been checked
463
+** out but do not actually write anything to the
464
+** filesystem.
465
+** --sqlar ARCHIVE Leave the check-out in an SQL-archive named ARCHIVE
466
+** rather than unpacking into separate files.
467
+** -v|--verbose Show all files as they are extracted
471468
*/
472469
void get_cmd(void){
473470
int forceFlag = find_option("force","f",0)!=0;
474471
int bVerbose = find_option("verbose","v",0)!=0;
475472
int bQuiet = find_option("quiet","q",0)!=0;
476473
--- src/checkout.c
+++ src/checkout.c
@@ -438,38 +438,35 @@
438 ** COMMAND: get
439 **
440 ** Usage: %fossil get URL ?VERSION? ?OPTIONS?
441 **
442 ** Download a single check-in from a remote repository named URL and
443 ** unpack all of the files locally. The check-in is identified by VERSION.
444 **
445 ** URL can be a traditional URL like one of:
 
 
446 **
447 ** * https://domain.com/project
448 ** * ssh://my-server/project.fossil
449 ** * file:/home/user/Fossils/project.fossil
450 **
451 ** Or URL can be just the name of a local repository without the "file:"
452 ** prefix.
453 **
454 ** This command works by downloading an SQL archive of the requested
455 ** check-in and then extracting all the files from the archive.
456 **
457 ** Options:
458 ** --dest DIRECTORY Extract files into DIRECTORY. Use "--dest ."
459 ** to extract into the local directory.
460 **
461 ** -f|--force Overwrite existing files
462 **
463 ** --list List all the files that would have been checked
464 ** out but do not actually write anything to the
465 ** filesystem.
466 **
467 ** --sqlar ARCHIVE Store the check-out in an SQL-archive rather
468 ** than unpacking them into separate files.
469 **
470 ** -v|--verbose Show all files as they are extracted
471 */
472 void get_cmd(void){
473 int forceFlag = find_option("force","f",0)!=0;
474 int bVerbose = find_option("verbose","v",0)!=0;
475 int bQuiet = find_option("quiet","q",0)!=0;
476
--- src/checkout.c
+++ src/checkout.c
@@ -438,38 +438,35 @@
438 ** COMMAND: get
439 **
440 ** Usage: %fossil get URL ?VERSION? ?OPTIONS?
441 **
442 ** Download a single check-in from a remote repository named URL and
443 ** unpack all of the files into a subdirectory. The specific check-in
444 ** to download is identified by VERSION. If VERSION is omitted, the
445 ** latest trunk check-in is used. The URL can be a traditional "https:",
446 ** "ssh:", or "file:" URL similar to the examples shown below, or it can
447 ** be the name of a local repository/
448 **
449 ** * https://domain.com/project
450 ** * ssh://my-server/project.fossil
451 ** * file:/home/user/Fossils/project.fossil
452 **
 
 
 
453 ** This command works by downloading an SQL archive of the requested
454 ** check-in and then extracting all the files from the archive.
455 **
456 ** Options:
457 ** --dest DIRECTORY Extract files into DIRECTORY. Use "--dest ." to
458 ** extract into the local directory. If this option is
459 ** omitted, Fossil invents a subdirectory name derived
460 ** from base filename in the URL and from the VERSION.
461 ** -f|--force Overwrite existing files
462 ** --list List all the files that would have been checked
463 ** out but do not actually write anything to the
464 ** filesystem.
465 ** --sqlar ARCHIVE Leave the check-out in an SQL-archive named ARCHIVE
466 ** rather than unpacking into separate files.
467 ** -v|--verbose Show all files as they are extracted
 
 
468 */
469 void get_cmd(void){
470 int forceFlag = find_option("force","f",0)!=0;
471 int bVerbose = find_option("verbose","v",0)!=0;
472 int bQuiet = find_option("quiet","q",0)!=0;
473

Keyboard Shortcuts

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