Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Revise and simplify the list of 1st-tier commands that are shown by the "fossil help" command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
84f697e570a80431b2af7047eb451b99 |
| User & Date: | drh 2020-08-09 13:49:47.386 |
Context
|
2020-08-10
| ||
| 05:38 | Amend OpenBSD httpd Fossil server instructions to use the mount_mfs -P option to automatically populate the chroot /dev tree as suggested by anon on the forum. ... (check-in: 4b240ec31e user: jamsek tags: trunk) | |
|
2020-08-09
| ||
| 21:45 | Merge in trunk; resolve conflicts ... (Closed-Leaf check-in: 7cfbf66a02 user: ashepilko tags: cmake-ide) | |
| 14:43 | Improved(?) the way forum post expansion is handled, based on forum feedback. Added a narrow "tap zone" to the right of the post scrollbars to expand/collapse. When a post is collapsed the first time, it is shrunken much smaller than its original size. When collapsing a post, we now scroll its parent element (post header), rather than the next post, into view. ... (check-in: ebbd20c638 user: stephan tags: forum-expand-post-revisited) | |
| 13:49 | Revise and simplify the list of 1st-tier commands that are shown by the "fossil help" command. ... (check-in: 84f697e570 user: drh tags: trunk) | |
| 08:28 | Edit whitespace in previous commit to make format consistent with existing code blocks. ... (check-in: d2ad5f2fe7 user: jamsek tags: trunk) | |
Changes
Changes to src/bundle.c.
| ︙ | ︙ | |||
714 715 716 717 718 719 720 |
}else{
purge_artifact_list("ok",0,0);
}
db_end_transaction(0);
}
/*
| | | 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 |
}else{
purge_artifact_list("ok",0,0);
}
db_end_transaction(0);
}
/*
** COMMAND: bundle*
**
** Usage: %fossil bundle SUBCOMMAND ARGS...
**
** > fossil bundle append BUNDLE FILE...
**
** Add files named on the command line to BUNDLE. This subcommand has
** little practical use and is mostly intended for testing.
|
| ︙ | ︙ |
Changes to src/diff.c.
| ︙ | ︙ | |||
2560 2561 2562 2563 2564 2565 2566 | @ </pre> style_footer(); } /* ** COMMAND: annotate ** COMMAND: blame | | | 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 | @ </pre> style_footer(); } /* ** COMMAND: annotate ** COMMAND: blame ** COMMAND: praise* ** ** Usage: %fossil annotate|blame|praise ?OPTIONS? FILENAME ** ** Output the text of a file with markings to show when each line of the file ** was last modified. The version currently checked out is shown by default. ** Other versions may be specified using the -r option. The "annotate" command ** shows line numbers and omits the username. The "blame" and "praise" commands |
| ︙ | ︙ |
Changes to src/dispatch.c.
| ︙ | ︙ | |||
963 964 965 966 967 968 969 | ** ** Display information on how to use TOPIC, which may be a command, webpage, or ** setting. Webpage names begin with "/". If TOPIC is omitted, a list of ** topics is returned. ** ** The following options can be used when TOPIC is omitted: ** | | | 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 | ** ** Display information on how to use TOPIC, which may be a command, webpage, or ** setting. Webpage names begin with "/". If TOPIC is omitted, a list of ** topics is returned. ** ** The following options can be used when TOPIC is omitted: ** ** -a|--all List both common and auxiliary commands ** -o|--options List command-line options common to all commands ** -s|--setting List setting names ** -t|--test List unsupported "test" commands ** -x|--aux List only auxiliary commands ** -w|--www List all web pages ** ** These options can be used when TOPIC is present: |
| ︙ | ︙ | |||
986 987 988 989 990 991 992 |
const CmdOrPage *pCmd = 0;
int useHtml = 0;
Blob txt;
if( g.argc<3 ){
z = g.argv[0];
fossil_print(
"Usage: %s help TOPIC\n"
| | > | | 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 |
const CmdOrPage *pCmd = 0;
int useHtml = 0;
Blob txt;
if( g.argc<3 ){
z = g.argv[0];
fossil_print(
"Usage: %s help TOPIC\n"
"Try \"%s help help\" or \"%s help -a\" for more options\n"
"Frequently used commands:\n",
z, z, z);
command_list(0, CMDFLAG_1ST_TIER);
version_cmd();
return;
}
if( find_option("options","o",0) ){
fossil_print("%s", zOptions);
return;
|
| ︙ | ︙ |
Changes to src/export.c.
| ︙ | ︙ | |||
1640 1641 1642 1643 1644 1645 1646 |
}
n = db_int(0, "SELECT count(*) FROM mmark WHERE isfile");
k = db_int(0, "SELECT count(*) FROm mmark WHERE NOT isfile");
fossil_print("Exported: %d check-ins and %d file blobs\n", k, n);
}
/*
| | | 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 |
}
n = db_int(0, "SELECT count(*) FROM mmark WHERE isfile");
k = db_int(0, "SELECT count(*) FROm mmark WHERE NOT isfile");
fossil_print("Exported: %d check-ins and %d file blobs\n", k, n);
}
/*
** COMMAND: git*
**
** Usage: %fossil git SUBCOMMAND
**
** Do incremental import or export operations between Fossil and Git.
** Subcommands:
**
** > fossil git export [MIRROR] [OPTIONS]
|
| ︙ | ︙ |
Changes to src/fusefs.c.
| ︙ | ︙ | |||
283 284 285 286 287 288 289 |
static struct fuse_operations fusefs_methods = {
.getattr = fusefs_getattr,
.readdir = fusefs_readdir,
.read = fusefs_read,
};
/*
| | | 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
static struct fuse_operations fusefs_methods = {
.getattr = fusefs_getattr,
.readdir = fusefs_readdir,
.read = fusefs_read,
};
/*
** COMMAND: fusefs*
**
** Usage: %fossil fusefs [--debug] DIRECTORY
**
** This command uses the Fuse Filesystem (FuseFS) to mount a directory
** at DIRECTORY that contains the content of all check-ins in the
** repository. The names of files are DIRECTORY/checkins/VERSION/PATH
** where DIRECTORY is the root of the mount, VERSION is any valid
|
| ︙ | ︙ |
Changes to src/hook.c.
| ︙ | ︙ | |||
172 173 174 175 176 177 178 |
while( db_step(&q)==SQLITE_ROW ){
blob_appendf(pOut, "%s %s\n", db_column_text(&q,0), db_column_text(&q,1));
}
db_finalize(&q);
}
/*
| | | 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
while( db_step(&q)==SQLITE_ROW ){
blob_appendf(pOut, "%s %s\n", db_column_text(&q,0), db_column_text(&q,1));
}
db_finalize(&q);
}
/*
** COMMAND: hook*
**
** Usage: %fossil hook COMMAND ...
**
** Commands include:
**
** > fossil hook add --command COMMAND --type TYPE --sequence NUMBER
**
|
| ︙ | ︙ |
Changes to src/import.c.
| ︙ | ︙ | |||
1592 1593 1594 1595 1596 1597 1598 |
db_finalize(&cpyPath);
db_finalize(&cpyRoot);
db_finalize(&revSrc);
fossil_print(" Done!\n");
}
/*
| | | 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 |
db_finalize(&cpyPath);
db_finalize(&cpyRoot);
db_finalize(&revSrc);
fossil_print(" Done!\n");
}
/*
** COMMAND: import*
**
** Usage: %fossil import ?--git? ?OPTIONS? NEW-REPOSITORY ?INPUT-FILE?
** or: %fossil import --svn ?OPTIONS? NEW-REPOSITORY ?INPUT-FILE?
**
** Read interchange format generated by another VCS and use it to
** construct a new Fossil repository named by the NEW-REPOSITORY
** argument. If no input file is supplied the interchange format
|
| ︙ | ︙ |
Changes to src/publish.c.
| ︙ | ︙ | |||
19 20 21 22 23 24 25 | ** "unpublished" commands. */ #include "config.h" #include "publish.h" #include <assert.h> /* | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ** "unpublished" commands. */ #include "config.h" #include "publish.h" #include <assert.h> /* ** COMMAND: unpublished* ** ** Usage: %fossil unpublished ?OPTIONS? ** ** Show a list of unpublished or "private" artifacts. Unpublished artifacts ** will never push and hence will not be shared with collaborators. ** ** By default, this command only shows unpublished check-ins. To show |
| ︙ | ︙ | |||
48 49 50 51 52 53 54 |
"IN (SELECT rid FROM private CROSS JOIN event"
" WHERE private.rid=event.objid"
" AND event.type='ci')", 0);
}
}
/*
| | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
"IN (SELECT rid FROM private CROSS JOIN event"
" WHERE private.rid=event.objid"
" AND event.type='ci')", 0);
}
}
/*
** COMMAND: publish*
**
** Usage: %fossil publish ?--only? TAGS...
**
** Cause artifacts identified by TAGS... to be published (made non-private).
** This can be used (for example) to convert a private branch into a public
** branch, or to publish a bundle that was imported privately.
**
|
| ︙ | ︙ |
Changes to src/stat.c.
| ︙ | ︙ | |||
290 291 292 293 294 295 296 | } @ </table> style_footer(); } /* | | | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | } @ </table> style_footer(); } /* ** COMMAND: dbstat ** ** Usage: %fossil dbstat OPTIONS ** ** Shows statistics and global information about the repository. ** ** Options: ** |
| ︙ | ︙ | |||
382 383 384 385 386 387 388 |
" ORDER BY mtime DESC LIMIT 1");
fossil_print("%*s%s\n", colWidth, "latest-change:", z);
}
n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event)"
" + 0.99");
fossil_print("%*s%,d days or approximately %.2f years.\n",
colWidth, "project-age:", n, n/365.2425);
| > | | | > | 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 |
" ORDER BY mtime DESC LIMIT 1");
fossil_print("%*s%s\n", colWidth, "latest-change:", z);
}
n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event)"
" + 0.99");
fossil_print("%*s%,d days or approximately %.2f years.\n",
colWidth, "project-age:", n, n/365.2425);
if( !brief ){
p = db_get("project-code", 0);
if( p ){
fossil_print("%*s%s\n", colWidth, "project-id:", p);
}
}
#if 0
/* Server-id is not useful information any more */
fossil_print("%*s%s\n", colWidth, "server-id:", db_get("server-code", 0));
#endif
fossil_print("%*s%s\n", colWidth, "schema-version:", g.zAuxSchema);
if( !omitVers ){
|
| ︙ | ︙ |
Changes to src/sync.c.
| ︙ | ︙ | |||
343 344 345 346 347 348 349 |
(void)find_option("uv-noop",0,0);
process_sync_args(&configFlags, &syncFlags, 1, 0);
verify_all_options();
client_sync(syncFlags, 0, 0, 0);
}
/*
| > | | 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
(void)find_option("uv-noop",0,0);
process_sync_args(&configFlags, &syncFlags, 1, 0);
verify_all_options();
client_sync(syncFlags, 0, 0, 0);
}
/*
** COMMAND: remote
** COMMAND: remote-url*
**
** Usage: %fossil remote ?SUBCOMMAND ...?
**
** Use this command to view or modify the set of remote repositories
** used as the default target for sync, push, and pull and for autosync.
**
** The default remote is set automatically by a "clone" command or by any
|
| ︙ | ︙ |