Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | Numerous help text consistency tweaks based on forum discussion 8c644048f0. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4cb50c4ef35d0ab2d1932600b4f4971e |
User & Date: | stephan 2021-03-11 13:22:11 |
2021-03-11
| ||
15:40 | More help text consistency tweaks from forum discussion 8c644048f0: --repository REPO. ... (check-in: 2f7c93f4 user: stephan tags: trunk) | |
13:22 | Numerous help text consistency tweaks based on forum discussion 8c644048f0. ... (check-in: 4cb50c4e user: stephan tags: trunk) | |
2021-03-10
| ||
12:34 | Ensure that there is always a newline before a conflict mark in merge output. See the forum discussion. ... (check-in: b491c196 user: drh tags: trunk) | |
Changes to src/add.c.
︙ | ︙ | |||
361 362 363 364 365 366 367 | ** ** The --case-sensitive option determines whether or not filenames should ** be treated case sensitive or not. If the option is not given, the default ** depends on the global setting, or the operating system default, if not set. ** ** Options: ** | | | | | | 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | ** ** The --case-sensitive option determines whether or not filenames should ** be treated case sensitive or not. If the option is not given, the default ** depends on the global setting, or the operating system default, if not set. ** ** Options: ** ** --case-sensitive BOOL Override the case-sensitive setting ** --dotfiles Include files beginning with a dot (".") ** -f|--force Add files without prompting ** --ignore CSG Ignore unmanaged files matching patterns from ** the Comma Separated Glob (CSG) pattern list ** --clean CSG Also ignore files matching patterns from ** the Comma Separated Glob (CSG) list ** --reset Reset the ADDED state of a checkout, such ** that all newly-added (but not yet committed) ** files are no longer added. No flags other ** than --verbose and --dry-run may be used ** with --reset. ** ** The following options are only valid with --reset: ** -v|--verbose Output information about each --reset file ** -n|--dry-run Display instead of run actions ** ** See also: [[addremove]], [[rm]] */ void add_cmd(void){ int i; /* Loop counter */ int vid; /* Currently checked out version */ int nRoot; /* Full path characters in g.zLocalRoot */ |
︙ | ︙ | |||
987 988 989 990 991 992 993 | ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files" ** setting is non-zero, files WILL BE renamed or moved on disk ** as well. This does NOT apply to the 'rename' command. ** ** Options: ** --soft Skip moving files within the checkout. ** This supersedes the --hard option. | | | | | 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 | ** WARNING: If the "--hard" option is specified -OR- the "mv-rm-files" ** setting is non-zero, files WILL BE renamed or moved on disk ** as well. This does NOT apply to the 'rename' command. ** ** Options: ** --soft Skip moving files within the checkout. ** This supersedes the --hard option. ** --hard Move files within the checkout ** --case-sensitive BOOL Override the case-sensitive setting ** -n|--dry-run If given, display instead of run actions ** ** See also: [[changes]], [[status]] */ void mv_cmd(void){ int i; int vid; int moveFiles; |
︙ | ︙ |
Changes to src/ajax.c.
︙ | ︙ | |||
64 65 66 67 68 69 70 | if(addScriptTag){ style_script_end(); } } /* ** Returns a value from the ajax_render_modes enum, based on the | | | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | if(addScriptTag){ style_script_end(); } } /* ** Returns a value from the ajax_render_modes enum, based on the ** given mimetype string (which may be NULL), defaulting to ** AJAX_RENDER_PLAIN_TEXT. */ int ajax_render_mode_for_mimetype(const char * zMimetype){ int rc = AJAX_RENDER_PLAIN_TEXT; if( zMimetype ){ if( fossil_strcmp(zMimetype, "text/html")==0 ){ rc = AJAX_RENDER_HTML_IFRAME; |
︙ | ︙ |
Changes to src/alerts.c.
︙ | ︙ | |||
1018 1019 1020 1021 1022 1023 1024 | ** email sending mechanism is currently configured. ** Use this for testing the email notification ** configuration. Options: ** ** --body FILENAME ** --smtp-trace ** --stdout | | | 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 | ** email sending mechanism is currently configured. ** Use this for testing the email notification ** configuration. Options: ** ** --body FILENAME ** --smtp-trace ** --stdout ** -S|--subject SUBJECT ** ** unsubscribe EMAIL Remove a single subscriber with the given EMAIL. */ void alert_cmd(void){ const char *zCmd; int nCmd; db_find_and_open_repository(0, 0); |
︙ | ︙ |
Changes to src/backoffice.c.
︙ | ︙ | |||
693 694 695 696 697 698 699 | ** --nodelay Do not queue up or wait for a backoffice job ** to complete. If no work is available or if ** backoffice has run recently, return immediately. ** ** --nolease Always run backoffice, even if there is a lease ** conflict. This option implies --nodelay. This ** option is added to secondary backoffice commands | | | 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | ** --nodelay Do not queue up or wait for a backoffice job ** to complete. If no work is available or if ** backoffice has run recently, return immediately. ** ** --nolease Always run backoffice, even if there is a lease ** conflict. This option implies --nodelay. This ** option is added to secondary backoffice commands ** that are invoked by the --poll option. */ void backoffice_command(void){ int nPoll; int nMin; const char *zPoll; int bDebug = 0; int bNoLease = 0; |
︙ | ︙ |
Changes to src/bundle.c.
︙ | ︙ | |||
738 739 740 741 742 743 744 | ** ** Generate a new bundle, in the file named BUNDLE, that contains a ** subset of the check-ins in the repository (usually a single branch) ** described by the --branch, --from, --to, and/or --checkin options, ** at least one of which is required. If BUNDLE already exists, the ** specified content is added to the bundle. ** | | | | 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 | ** ** Generate a new bundle, in the file named BUNDLE, that contains a ** subset of the check-ins in the repository (usually a single branch) ** described by the --branch, --from, --to, and/or --checkin options, ** at least one of which is required. If BUNDLE already exists, the ** specified content is added to the bundle. ** ** --branch BRANCH Package all check-ins on BRANCH ** --from TAG1 --to TAG2 Package check-ins between TAG1 and TAG2 ** --checkin TAG Package the single check-in TAG ** --standalone Do no use delta-encoding against ** artifacts not in the bundle ** ** > fossil bundle extend BUNDLE ** ** The BUNDLE must already exist. This subcommand adds to the bundle |
︙ | ︙ |
Changes to src/checkin.c.
︙ | ︙ | |||
829 830 831 832 833 834 835 | ** setting are ignored. This setting can be overridden by the --ignore ** option, whose CSG argument is a comma-separated list of glob patterns. ** ** Pathnames are displayed according to the "relative-paths" setting, ** unless overridden by the --abs-paths or --rel-paths options. ** ** Options: | | | | 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 | ** setting are ignored. This setting can be overridden by the --ignore ** option, whose CSG argument is a comma-separated list of glob patterns. ** ** Pathnames are displayed according to the "relative-paths" setting, ** unless overridden by the --abs-paths or --rel-paths options. ** ** Options: ** --abs-paths Display absolute pathnames ** --case-sensitive BOOL Override case-sensitive setting ** --dotfiles Include files beginning with a dot (".") ** --header Identify the repository if there are extras ** --ignore CSG Ignore files matching patterns from the argument ** --rel-paths Display pathnames relative to the current working ** directory ** ** See also: [[changes]], [[clean]], [[status]] */ void extras_cmd(void){ Blob report = BLOB_INITIALIZER; const char *zIgnoreFlag = find_option("ignore",0,1); unsigned scanFlags = find_option("dotfiles",0,0)!=0 ? SCAN_ALL : 0; |
︙ | ︙ | |||
926 927 928 929 930 931 932 | ** --case-sensitive BOOL Override case-sensitive setting ** --dirsonly Only remove empty directories. No files will ** be removed. Using this option will automatically ** enable the --emptydirs option as well. ** --disable-undo WARNING: This option disables use of the undo ** mechanism for this clean operation and should be ** used with extreme caution. | | | | | | | | | | | 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 | ** --case-sensitive BOOL Override case-sensitive setting ** --dirsonly Only remove empty directories. No files will ** be removed. Using this option will automatically ** enable the --emptydirs option as well. ** --disable-undo WARNING: This option disables use of the undo ** mechanism for this clean operation and should be ** used with extreme caution. ** --dotfiles Include files beginning with a dot (".") ** --emptydirs Remove any empty directories that are not ** explicitly exempted via the empty-dirs setting ** or another applicable setting or command line ** argument. Matching files, if any, are removed ** prior to checking for any empty directories; ** therefore, directories that contain only files ** that were removed will be removed as well. ** -f|--force Remove files without prompting ** -i|--prompt Prompt before removing each file. This option ** implies the --disable-undo option. ** -x|--verily WARNING: Removes everything that is not a managed ** file or the repository itself. This option ** implies the --force, --emptydirs, --dotfiles, and ** --disable-undo options. Furthermore, it ** completely disregards the keep-glob ** and ignore-glob settings. However, it does honor ** the --ignore and --keep options. ** --clean CSG WARNING: Never prompt to delete any files matching ** this comma separated list of glob patterns. Also, ** deletions of any files matching this pattern list ** cannot be undone. ** --ignore CSG Ignore files matching patterns from the ** comma separated list of glob patterns ** --keep <CSG> Keep files matching this comma separated ** list of glob patterns ** -n|--dry-run Delete nothing, but display what would have been ** deleted ** --no-prompt Do not prompt the user for input and assume an ** answer of 'No' for every question ** --temp Remove only Fossil-generated temporary files ** -v|--verbose Show all files as they are removed ** ** See also: [[addremove]], [[extras]], [[status]] */ void clean_cmd(void){ int allFileFlag, allDirFlag, dryRunFlag, verboseFlag; int emptyDirsFlag, dirsOnlyFlag; int disableUndo, noPrompt; |
︙ | ︙ |
Changes to src/checkout.c.
︙ | ︙ | |||
280 281 282 283 284 285 286 | ** ** Options: ** --force Ignore edited files in the current checkout ** --keep Only update the manifest and manifest.uuid files ** --force-missing Force checkout even if content is missing ** --setmtime Set timestamps of all files to match their SCM-side ** times (the timestamp of the last checkin which modified | | | 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | ** ** Options: ** --force Ignore edited files in the current checkout ** --keep Only update the manifest and manifest.uuid files ** --force-missing Force checkout even if content is missing ** --setmtime Set timestamps of all files to match their SCM-side ** times (the timestamp of the last checkin which modified ** them) ** ** See also: [[update]] */ void checkout_cmd(void){ int forceFlag; /* Force checkout even if edits exist */ int forceMissingFlag; /* Force checkout even if missing content */ int keepFlag; /* Do not change any files on disk */ |
︙ | ︙ |
Changes to src/descendants.c.
︙ | ︙ | |||
397 398 399 400 401 402 403 | ** The -a|--all flag causes all leaves (closed and open) to be shown. ** The -c|--closed flag shows only closed leaves. ** ** The --recompute flag causes the content of the "leaf" table in the ** repository database to be recomputed. ** ** Options: | | | | | | | 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | ** The -a|--all flag causes all leaves (closed and open) to be shown. ** The -c|--closed flag shows only closed leaves. ** ** The --recompute flag causes the content of the "leaf" table in the ** repository database to be recomputed. ** ** Options: ** -a|--all Show ALL leaves ** --bybranch Order output by branch name ** -c|--closed Show only closed leaves ** -m|--multiple Show only cases with multiple leaves on a single branch ** --recompute Recompute the "leaf" table in the repository DB ** -W|--width N Width of lines (default is to auto-detect). Must be ** more than 39 or else 0 no limit, resulting in a single ** line per entry. ** ** See also: [[descendants]], [[finfo]], [[info]], [[branch]] */ void leaves_cmd(void){ |
︙ | ︙ |
Changes to src/dispatch.c.
︙ | ︙ | |||
1008 1009 1010 1011 1012 1013 1014 | @ --no-th-hook Do not run TH1 hooks @ --quiet Reduce the amount of output @ --sqlstats Show SQL usage statistics when done @ --sqltrace Trace all SQL commands @ --sshtrace Trace SSH activity @ --ssl-identity NAME Set the SSL identity to NAME @ --systemtrace Trace calls to system() | | | 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 | @ --no-th-hook Do not run TH1 hooks @ --quiet Reduce the amount of output @ --sqlstats Show SQL usage statistics when done @ --sqltrace Trace all SQL commands @ --sshtrace Trace SSH activity @ --ssl-identity NAME Set the SSL identity to NAME @ --systemtrace Trace calls to system() @ -U|--user USER Make the default user be USER @ --utc Display times using UTC @ --vfs NAME Cause SQLite to use the NAME VFS ; /* ** COMMAND: help ** |
︙ | ︙ |
Changes to src/doc.c.
︙ | ︙ | |||
71 72 73 74 75 76 77 | return aMime[i].zMimetype; } return "unknown/unknown"; } /* A table of mimetypes based on file suffixes. ** Suffixes must be in sorted order so that we can do a binary | | | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | return aMime[i].zMimetype; } return "unknown/unknown"; } /* A table of mimetypes based on file suffixes. ** Suffixes must be in sorted order so that we can do a binary ** search to find the mimetype. */ static const struct { const char *zSuffix; /* The file suffix */ int size; /* Length of the suffix */ const char *zMimetype; /* The corresponding mimetype */ } aMime[] = { { "ai", 2, "application/postscript" }, |
︙ | ︙ | |||
425 426 427 428 429 430 431 | "()=>window.fossil.pikchr.addSrcView(), " "false);\n"); style_script_end(); } } /* | | | 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | "()=>window.fossil.pikchr.addSrcView(), " "false);\n"); style_script_end(); } } /* ** Guess the mimetype of a document based on its name. */ const char *mimetype_from_name(const char *zName){ const char *z; int i; int first, last; int len; char zSuffix[20]; |
︙ | ︙ |
Changes to src/fileedit.c.
︙ | ︙ | |||
751 752 753 754 755 756 757 | void test_ci_mini_cmd(void){ CheckinMiniInfo cimi; /* checkin state */ int newRid = 0; /* RID of new version */ const char * zFilename; /* argv[2] */ const char * zComment; /* -m comment */ const char * zCommentFile; /* -M FILE */ const char * zAsFilename; /* --as filename */ | | | 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 | void test_ci_mini_cmd(void){ CheckinMiniInfo cimi; /* checkin state */ int newRid = 0; /* RID of new version */ const char * zFilename; /* argv[2] */ const char * zComment; /* -m comment */ const char * zCommentFile; /* -M FILE */ const char * zAsFilename; /* --as filename */ const char * zRevision; /* -r|--revision [=trunk|checkout] */ const char * zUser; /* --user-override */ const char * zDate; /* --date-override */ char const * zManifestFile = 0;/* --save-manifest FILE */ /* This function should perform only the minimal "business logic" it ** needs in order to fully/properly populate the CheckinMiniInfo and ** then pass it on to checkin_mini() to do most of the validation |
︙ | ︙ |
Changes to src/finfo.c.
︙ | ︙ | |||
37 38 39 40 41 42 43 | ** a quick status and does not check for up-to-date-ness of the file. ** ** In the -p mode, there's an optional flag "-r|--revision REVISION". ** The specified version (or the latest checked out version) is printed ** to stdout. The -p mode is another form of the "cat" command. ** ** Options: | | | | | | | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | ** a quick status and does not check for up-to-date-ness of the file. ** ** In the -p mode, there's an optional flag "-r|--revision REVISION". ** The specified version (or the latest checked out version) is printed ** to stdout. The -p mode is another form of the "cat" command. ** ** Options: ** -b|--brief Display a brief (one line / revision) summary ** --case-sensitive B Enable or disable case-sensitive filenames. B is a ** boolean: "yes", "no", "true", "false", etc. ** -l|--log Select log mode (the default) ** -n|--limit N Display the first N changes (default unlimited). ** N less than 0 means no limit. ** --offset P Skip P changes ** -p|--print Select print mode ** -r|--revision R Print the given revision (or ckout, if none is given) ** to stdout (only in print mode) ** -s|--status Select status mode (print a status indicator for FILE) ** -W|--width N Width of lines (default is to auto-detect). Must be ** more than 22 or else 0 to indicate no limit. ** ** See also: [[artifact]], [[cat]], [[descendants]], [[info]], [[leaves]] */ void finfo_cmd(void){ db_must_be_within_tree(); |
︙ | ︙ |
Changes to src/info.c.
︙ | ︙ | |||
1865 1866 1867 1868 1869 1870 1871 | g.isConst = 1; deliver_artifact(rid, P("m")); } /* ** Generate a verbatim artifact as the result of an HTTP request. | | | | 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 | g.isConst = 1; deliver_artifact(rid, P("m")); } /* ** Generate a verbatim artifact as the result of an HTTP request. ** If zMime is not NULL, use it as the mimetype. If zMime is ** NULL, guess at the mimetype based on the filename ** associated with the artifact. */ void deliver_artifact(int rid, const char *zMime){ Blob content; const char *zAttachName = P("at"); if( zMime==0 ){ char *zFN = (char*)zAttachName; |
︙ | ︙ |
Changes to src/json_branch.c.
︙ | ︙ | |||
48 49 50 51 52 53 54 | /* ** Impl for /json/branch/list ** ** ** CLI mode options: ** | | | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | /* ** Impl for /json/branch/list ** ** ** CLI mode options: ** ** -r|--range X, where X is one of (open,closed,all) ** (only the first letter is significant, default=open) ** -a (same as --range a) ** -c (same as --range c) ** ** HTTP mode options: ** ** "range" GET/POST.payload parameter. FIXME: currently we also use ** POST, but really want to restrict this to POST.payload. |
︙ | ︙ |
Changes to src/lookslike.c.
︙ | ︙ | |||
399 400 401 402 403 404 405 | /* ** COMMAND: test-looks-like-utf ** ** Usage: %fossil test-looks-like-utf FILENAME ** ** Options: ** -n|--limit N Repeat looks-like function N times, for | | | 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | /* ** COMMAND: test-looks-like-utf ** ** Usage: %fossil test-looks-like-utf FILENAME ** ** Options: ** -n|--limit N Repeat looks-like function N times, for ** performance measurement. Default = 1 ** --utf8 Ignoring BOM and file size, force UTF-8 checking ** --utf16 Ignoring BOM and file size, force UTF-16 checking ** ** FILENAME is the name of a file to check for textual content in the UTF-8 ** and/or UTF-16 encodings. */ void looks_like_utf_test_cmd(void){ |
︙ | ︙ |
Changes to src/main.c.
︙ | ︙ | |||
2713 2714 2715 2716 2717 2718 2719 | ** Note that the following command is used by ssh:// processing. ** ** COMMAND: test-http ** ** Works like the [[http]] command but gives setup permission to all users. ** ** Options: | | | | 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 | ** Note that the following command is used by ssh:// processing. ** ** COMMAND: test-http ** ** Works like the [[http]] command but gives setup permission to all users. ** ** Options: ** --th-trace Trace TH1 execution (for debugging purposes) ** --usercap CAP User capability string (Default: "sx") ** */ void cmd_test_http(void){ const char *zIpAddr; /* IP address of remote client */ const char *zUserCap; Th_InitTraceLog(); |
︙ | ︙ |
Changes to src/manifest.c.
︙ | ︙ | |||
1279 1280 1281 1282 1283 1284 1285 | ** Parse all entries in the BLOB table that are believed to be non-data ** artifacts and report any errors. Run this test command on historical ** repositories after making any changes to the manifest_parse() ** implementation to confirm that the changes did not break anything. ** ** Options: ** | | | 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 | ** Parse all entries in the BLOB table that are believed to be non-data ** artifacts and report any errors. Run this test command on historical ** repositories after making any changes to the manifest_parse() ** implementation to confirm that the changes did not break anything. ** ** Options: ** ** --limit N Parse no more than N artifacts before stopping ** --wellformed Use all BLOB table entries as input, not just ** those entries that are believed to be valid ** artifacts, and verify that the result the ** manifest_is_well_formed() agrees with the ** result of manifest_parse(). */ void manifest_test_parse_all_blobs_cmd(void){ |
︙ | ︙ |
Changes to src/name.c.
︙ | ︙ | |||
907 908 909 910 911 912 913 | ** Resolve the symbol NAME into its canonical artifact hash ** artifact name and provide a description of what role that artifact ** plays. ** ** Options: ** ** --type TYPE Only find artifacts of TYPE (one of: 'ci', 't', | | | 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 | ** Resolve the symbol NAME into its canonical artifact hash ** artifact name and provide a description of what role that artifact ** plays. ** ** Options: ** ** --type TYPE Only find artifacts of TYPE (one of: 'ci', 't', ** 'w', 'g', or 'e') ** -v|--verbose Provide extra information (such as the RID) */ void whatis_cmd(void){ int rid; const char *zName; int verboseFlag; int i; |
︙ | ︙ |
Changes to src/pikchrshow.c.
︙ | ︙ | |||
387 388 389 390 391 392 393 | ** Accepts a pikchr script as input and outputs the rendered script as ** an SVG graphic. The INFILE and OUTFILE options default to stdin ** resp. stdout, and the names "-" can be used as aliases for those ** streams. ** ** Options: ** | | | | | | | | | | 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | ** Accepts a pikchr script as input and outputs the rendered script as ** an SVG graphic. The INFILE and OUTFILE options default to stdin ** resp. stdout, and the names "-" can be used as aliases for those ** streams. ** ** Options: ** ** -div On success, add a DIV wrapper around the ** resulting SVG output which limits its max-width to ** its computed maximum ideal size. ** ** -div-indent Like -div but indent the div. ** ** -div-center Like -div but center the div. ** ** -div-left Like -div but float the div left. ** ** -div-right Like -div but float the div right. ** ** -div-toggle Set the 'toggle' CSS class on the div (used by the ** JavaScript-side post-processor). ** ** -div-source Set the 'source' CSS class on the div, which tells ** CSS to hide the SVG and reveal the source by default. ** ** -src Store the input pikchr's source code in the output as ** a separate element adjacent to the SVG one. Implied ** by -div-source. ** ** ** -th Process the input using TH1 before passing it to pikchr. ** ** -th-novar Disable $var and $<var> TH1 processing. Use this if the |
︙ | ︙ |
Changes to src/purge.c.
︙ | ︙ | |||
503 504 505 506 507 508 509 | ** ** > fossil purge wiki NAME ... ?OPTIONS? ** ** TBD... ** ** COMMON OPTIONS: ** | | | 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | ** ** > fossil purge wiki NAME ... ?OPTIONS? ** ** TBD... ** ** COMMON OPTIONS: ** ** --explain Make no changes, but show what would happen ** --dry-run An alias for --explain */ void purge_cmd(void){ int purgeFlags = PURGE_MOVETO_GRAVEYARD | PURGE_PRINT_SUMMARY; const char *zSubcmd; int n; int i; |
︙ | ︙ |
Changes to src/rebuild.c.
︙ | ︙ | |||
887 888 889 890 891 892 893 | ** This command permanently deletes the scrubbed information. THE EFFECTS ** OF THIS COMMAND ARE IRREVERSIBLE. USE WITH CAUTION! ** ** The user is prompted to confirm the scrub unless the --force option ** is used. ** ** Options: | | | | | 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 | ** This command permanently deletes the scrubbed information. THE EFFECTS ** OF THIS COMMAND ARE IRREVERSIBLE. USE WITH CAUTION! ** ** The user is prompted to confirm the scrub unless the --force option ** is used. ** ** Options: ** --force Do not prompt for confirmation ** --private Only private branches are removed from the repository ** --verily Scrub real thoroughly (see above) */ void scrub_cmd(void){ int bVerily = find_option("verily",0,0)!=0; int bForce = find_option("force", "f", 0)!=0; int privateOnly = find_option("private",0,0)!=0; int bNeedRebuild = 0; db_find_and_open_repository(OPEN_ANY_SCHEMA, 2); |
︙ | ︙ | |||
1112 1113 1114 1115 1116 1117 1118 | ** command would do. Then try to guess the hash policy from the path name, as ** the `reconstruct' command would do. ** ** No files or directories will be created. ** ** Options: ** -L|--prefixlength N Set the length of the names of the DESTINATION | | | 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 | ** command would do. Then try to guess the hash policy from the path name, as ** the `reconstruct' command would do. ** ** No files or directories will be created. ** ** Options: ** -L|--prefixlength N Set the length of the names of the DESTINATION ** subdirectories to N */ void test_hash_from_path_cmd(void) { char *zDest; char *zUuid; char *zFile; const char *zHashPolicy = "unknown"; const char *zPrefixOpt = find_option("prefixlength","L",1); |
︙ | ︙ |
Changes to src/rss.c.
︙ | ︙ | |||
222 223 224 225 226 227 228 | ** COMMAND: rss* ** ** Usage: %fossil rss ?OPTIONS? ** ** The CLI variant of the /timeline.rss page, this produces an RSS ** feed of the timeline to stdout. Options: ** | | | | | | | | 222 223 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 250 251 252 253 | ** COMMAND: rss* ** ** Usage: %fossil rss ?OPTIONS? ** ** The CLI variant of the /timeline.rss page, this produces an RSS ** feed of the timeline to stdout. Options: ** ** -type|y FLAG May be: all (default), ci (show check-ins only), ** t (show tickets only), w (show wiki only). ** ** -limit|n LIMIT The maximum number of items to show. ** ** -tkt HASH Filter for only those events for the specified ticket. ** ** -tag TAG Filter for a tag ** ** -wiki NAME Filter on a specific wiki page. ** ** Only one of -tkt, -tag, or -wiki may be used. ** ** -name FILENAME Filter for a specific file. This may be combined ** with one of the other filters (useful for looking ** at a specific branch). ** ** -url STRING Set the RSS feed's root URL to the given string. ** The default is "URL-PLACEHOLDER" (without quotes). */ void cmd_timeline_rss(void){ Stmt q; int nLine=0; char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0; Blob bSQL; |
︙ | ︙ |
Changes to src/sha1.c.
︙ | ︙ | |||
501 502 503 504 505 506 507 | ** ** Usage: %fossil sha1sum FILE... ** ** Compute an SHA1 checksum of all files named on the command-line. ** If a file is named "-" then take its content from standard input. ** Options: ** | | | | | | 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 | ** ** Usage: %fossil sha1sum FILE... ** ** Compute an SHA1 checksum of all files named on the command-line. ** If a file is named "-" then take its content from standard input. ** Options: ** ** -h|--dereference If FILE is a symbolic link, compute the hash ** on the object that the link points to. Normally, ** the hash is over the name of the object that ** the link points to. ** ** See also: [[md5sum]], [[sha3sum]] */ void sha1sum_test(void){ int i; Blob in; Blob cksum; |
︙ | ︙ |
Changes to src/sha3.c.
︙ | ︙ | |||
633 634 635 636 637 638 639 | ** ** --224 Compute a SHA3-224 hash ** --256 Compute a SHA3-256 hash (the default) ** --384 Compute a SHA3-384 hash ** --512 Compute a SHA3-512 hash ** --size N An N-bit hash. N must be a multiple of 32 between ** 128 and 512. | | | 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 | ** ** --224 Compute a SHA3-224 hash ** --256 Compute a SHA3-256 hash (the default) ** --384 Compute a SHA3-384 hash ** --512 Compute a SHA3-512 hash ** --size N An N-bit hash. N must be a multiple of 32 between ** 128 and 512. ** -h|--dereference If FILE is a symbolic link, compute the hash on ** the object pointed to, not on the link itself. ** ** See also: [[md5sum]], [[sha1sum]] */ void sha3sum_test(void){ int i; Blob in; |
︙ | ︙ |
Changes to src/tar.c.
︙ | ︙ | |||
423 424 425 426 427 428 429 | /* ** COMMAND: test-tarball ** ** Generate a GZIP-compressed tarball in the file given by the first argument ** that contains files given in the second and subsequent arguments. ** | | | 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 | /* ** COMMAND: test-tarball ** ** Generate a GZIP-compressed tarball in the file given by the first argument ** that contains files given in the second and subsequent arguments. ** ** -h|--dereference Follow symlinks and archive the files they point to */ void test_tarball_cmd(void){ int i; Blob zip; int eFType = SymFILE; if( g.argc<3 ){ usage("ARCHIVE [options] FILE...."); |
︙ | ︙ |
Changes to src/undo.c.
︙ | ︙ | |||
460 461 462 463 464 465 466 | ** is cleared by the commit and checkout commands. Other commands may ** or may not clear the undo stack. ** ** Future versions of Fossil might add new commands to the set of commands ** that are undoable. ** ** Options: | | | 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | ** is cleared by the commit and checkout commands. Other commands may ** or may not clear the undo stack. ** ** Future versions of Fossil might add new commands to the set of commands ** that are undoable. ** ** Options: ** -n|--dry-run Do not make changes but show what would be done ** ** See also: [[commit]], [[status]] */ void undo_cmd(void){ int isRedo = g.argv[1][0]=='r'; int undo_available; int dryRunFlag = find_option("dry-run", "n", 0)!=0; |
︙ | ︙ |
Changes to src/wiki.c.
︙ | ︙ | |||
766 767 768 769 770 771 772 | ** Returns true on success, false on error, and on error it ** queues up a JSON-format error response. ** ** Output JSON format: ** ** { name: "page name", ** type: "normal" | "tag" | "checkin" | "branch" | "sandbox", | | | 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 | ** Returns true on success, false on error, and on error it ** queues up a JSON-format error response. ** ** Output JSON format: ** ** { name: "page name", ** type: "normal" | "tag" | "checkin" | "branch" | "sandbox", ** mimetype: "mimetype", ** version: UUID string or null for a sandbox page, ** parent: "parent uuid" or null if no parent, ** isDeleted: true if the page has no content (is "deleted") ** else not set (making it "falsy" in JS), ** content: "page content" (only if includeContent is true) ** } ** |
︙ | ︙ | |||
834 835 836 837 838 839 840 | /* ** Ajax route handler for /wikiajax/save. ** ** URL params: ** ** page = the wiki page name. | | | 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 | /* ** Ajax route handler for /wikiajax/save. ** ** URL params: ** ** page = the wiki page name. ** mimetype = content mimetype. ** content = page content. Fossil considers an empty page to ** be "deleted". ** isnew = 1 if the page is to be newly-created, else 0 or ** not send. ** ** Responds with JSON. On error, an object in the form documented by ** ajax_route_error(). On success, an object in the form documented |
︙ | ︙ | |||
2126 2127 2128 2129 2130 2131 2132 | }else{ rid = wiki_technote_to_rid(zETime); if( rid>0 ){ pWiki = manifest_get(rid, CFTYPE_EVENT, 0); } } if( !zMimeType || !*zMimeType ){ | | | 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 | }else{ rid = wiki_technote_to_rid(zETime); if( rid>0 ){ pWiki = manifest_get(rid, CFTYPE_EVENT, 0); } } if( !zMimeType || !*zMimeType ){ /* Try to deduce the mimetype based on the prior version. */ if(isSandbox){ zMimeType = wiki_filter_mimetypes(db_get("sandbox-mimetype", "text/x-fossil-wiki")); }else if( pWiki!=0 && (pWiki->zMimetype && *pWiki->zMimetype) ){ zMimeType = pWiki->zMimetype; } |
︙ | ︙ |