Login
All files named "include/fossil-scm/fossil-cli.h"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for include/fossil-scm/fossil-cli.h

2021-12-21
20:21
Renamed to include/fossil-scm/cli.h. Removed the fossil- name prefix from include/fossil-scm/*.h. check-in: [43a9bea8d5] user: stephan branch: trunk, size: 0
08:28
Moved fossil-scm/fossil.h to ../libfossil.h so that client code can build from both the canonical tree and amalgamation using the same include name. file: [a165e4b2dc] check-in: [76d6359435] user: stephan branch: trunk, size: 40916
2021-11-22
11:37
Deduplicated some fcli code. Added a TODO. Fixed f-extract.c header comment. file: [ff4241fd74] check-in: [3e76615a5e] user: stephan branch: trunk, size: 40922
05:31
Added f-extract tool, per suggestion in [https://fossil-scm.org/forum/forumpost/fcca51d3eb2757f7|fossil forum post fcca51d3eb2757f7]. file: [c8cc23f884] check-in: [f7fdf3db10] user: stephan branch: trunk, size: 40684
2021-11-21
14:23
Added initial versino of the f-ciwoco app. Several minor API tweaks, including changing semantics of NULL args to fsl_deck_save() and the return semantics of fcli_fax(). file: [5ced9ab39b] check-in: [618d1b864a] user: stephan branch: trunk, size: 40691
2021-11-18
09:44
Moved cache metrics dumps into fcli API. Told f-rebuild to skip the ticket tables for the time being (since we do not yet crosslink those). Added FSL_CX_F_BLOB_CACHE flag to enable/disable blob cache. Discovered that f-rebuild causes unexpected failures in downstream apps like f-sanity and f-resolve. file: [f1d1799a32] check-in: [2b136fe2e7] user: stephan branch: trunk, size: 40575
2021-10-31
03:26
Swapped the internal relationship of fcli_setup() and fcli_setup_v2() and changed the latter's semantics a tiny bit. file: [2e515fb465] check-in: [d0c8ef79fe] user: stephan branch: trunk, size: 40221
2021-10-29
10:36
Add optional usage callback to fcli_command structure. If set, calls to fcli_command_help() with a true argument for the showUsage parameter, will call the fcli_command->usage() callback. This enables clients to display usage and/or additional help output on an individual command basis. Update apps in the repository impacted by this API change. file: [ca226cdc06] check-in: [d60fcce917] user: mark branch: trunk, size: 39892
2021-10-26
11:25
More work on f-rebuild. Added fcli_setup_v2(). file: [65bf683019] check-in: [14cebaaa7e] user: stephan branch: trunk, size: 39608
2021-10-22
06:01
Tidy fcli_command->aliases code and improve related docs. Remove superfluous format specifier arg and move all aliases output into fcli_help_show_aliases(). file: [a38b089d36] check-in: [89925fee94] user: mark branch: trunk, size: 39173
2021-10-21
14:32
Add optional command line aliases to fcli_command. As per /chat discussion, use a NUL-delimited char pointer to add optional aliases to a command. This commit also adapts fcli_command_help() output to display any aliases, and adapts fnc and existing f-apps that use fcli_command to demonstrate the change. file: [c3f9a0204c] check-in: [d9d00a5c97] user: mark branch: cli-aliases, size: 39021
04:41
Reduced fsl_buffer_reserve() calls by about 90% for f-parseparty (2.8m down to 300k), largely via addition of a db-level buffer for cached SQL preparation. Added a simpl hash to cached fsl_stmt instances to speed up fsl_db_prepare_cached() and reduce fsl_buffer_cmp() calls by 90%+. Record how many times any given caches fsl_stmt is reused and emit that via the new fcli_dump_stmt_cache() function. This reduces f-sanity allocations from 39k to 29k but slightly increases total allocated memory. file: [7767eae720] check-in: [c812573f26] user: stephan branch: trunk, size: 38556
2021-10-18
14:03
Numerous minor doc and constness tweaks. Starting to use markdown formatting for API docs, now that it's been discovered that Doxygen can do that. file: [86164aeb01] check-in: [77e8ee40f8] user: stephan branch: trunk, size: 38191
2021-10-15
09:33
While prepping for the merge port, moved the dry-run flag OUT of fcli and into the specific apps which implement it. Added skeleton f-test-merge app for use in the merge development. file: [7e23e1b112] check-in: [c9fb1f972f] user: stephan branch: trunk, size: 38226
2021-10-09
23:18
Moved the common ANSI color init code from f-adiff and f-vdiff into fcli_diff_colors(). file: [57d7831d53] check-in: [1e50499a37] user: stephan branch: trunk, size: 38439
06:56
Added --lib-version global fcli flag and upped the library version, rather arbitrarily, to 0.5-ish. file: [34a3d471e9] check-in: [ed0599af21] user: stephan branch: trunk, size: 37789
2021-09-28
03:07
Added line number support to the unified diff builder. Adjacent tinkering. file: [0ca05f6d43] check-in: [eddb657374] user: stephan branch: trunk, size: 37626
2021-08-09
20:07
Added fcli_progname() as a portable substitute(?) for BSD's getprogname(). file: [f0c8126871] check-in: [3d0057a245] user: stephan branch: trunk, size: 37628
2021-04-16
16:17
Implemented repo/checkout fingerprint check and added a check for it in f-status, f-timeline, and f-ci (failing fatally on a mismatch, instead of just warning like fossil does). We now update the fingerprint in the ckout db whenever we update the ckout version. We do not yet have an automatic recovery mechanism analog to fossil's vfile.c:vfile_rid_renumbering_event(). file: [b846f312c6] check-in: [8c9cf48702] user: stephan branch: trunk, size: 37341
2021-04-05
10:23
Minor generic cleanups in fcli and related app-side code. file: [d338713da4] check-in: [c62ffa1046] user: stephan branch: trunk, size: 36790
2021-03-31
12:17
Renamed fsl_vfile_load_from_rid() to fsl_vfile_load(). Added fsl_vfile_unload() and fsl_vfile_unload_except(). f-revert can now revert files to specific checkin versions while retaining the current checkout version. file: [6052c8f6ca] check-in: [40fcc816f0] user: stephan branch: trunk, size: 37021
09:47
Added fsl_ckout_vfile_ids() variant of fsl_filename_to_vfile_ids() in prep for an upcoming experiment. Fixed a cleanup order in fcli_shutdown(). file: [56b4f33560] check-in: [889d2e32bb] user: stephan branch: trunk, size: 36769
05:41
Minor f-apps updates. Reverted f-revert to using the filename variant of fsl_ckout_revert(), instead of the fsl_filename_to_vfile_ids() variant, because the former allows the user to revert renames using the old or new names, whereas the latter only sees the new names. Fixed a range error in fsl_stmt_bind_fmtv() when binding a string as blob, and that function's blob/string bindings no longer copy their arguments' memory. Changed fsl_stmt_bind_step() return semantics to enable fetching data. file: [3e3a1ad152] check-in: [43d1902823] user: stephan branch: trunk, size: 36740
2021-03-28
15:15
fsl_ckout_revert() now optionally accepts a fsl_id_bag instead of a filename. Exposed fsl_filename_to_vfile_id(s)() to the public API. Added fcli_args_to_vfile_ids() and refactored f-revert to use that functionality. file: [5d75b18029] check-in: [a527cc940a] user: stephan branch: trunk, size: 36517
2021-03-22
13:45
Added f-revert, analog to (fossil revert). Fixed f-rm to handle the filename '.' sensibly. Numerous tweaks in adjacent code along the way. file: [482e875c8d] check-in: [8cc33e4e8a] user: stephan branch: trunk, size: 35003
2021-03-21
00:26
Consolidated checkout/update to both use fsl_ckup_fchange_e to report the type of change, allowing removal of several of the fsl_ckup_state members. Local uncommitted adds and removals are now propagated when updating. Various adjacent tweaks. file: [93225700fe] check-in: [1efb02180b] user: stephan branch: trunk, size: 34262
2021-03-20
21:36
Minor restructuring of the fcli struct. file: [a264c80f84] check-in: [436ae2c47f] user: stephan branch: trunk, size: 34247
2021-03-19
00:30
More work on the 'update' infrastructure. Turns out we're still missing an important low-level bit or three. file: [79e306748d] check-in: [c6dc2f9770] user: stephan branch: trunk, size: 34008
2021-03-18
19:19
Moved the code for listing ambiguous hash prefixes from f-resolve to fcli. More work on the infrastructure needed for f-update. file: [2fa0ca9fab] check-in: [b50971a43e] user: stephan branch: trunk, size: 34008
2021-03-15
19:01
Tiny doc tweaks. file: [33f7353c46] check-in: [02eacfa610] user: stephan branch: trunk, size: 33571
18:50
Considerable refactoring in/around fsl_repo_open_ckout() to move some of the functionality of f-open into the library and some into fcli. file: [349fccd05d] check-in: [15425f1d4c] user: stephan branch: trunk, size: 33427
04:25
Globally renamed _checkout to _ckout, as some of these names are getting a bit long. file: [3c0956d114] check-in: [bc9e88ee2c] user: stephan branch: trunk, size: 33177
2021-03-01
16:21
Arguably a typo fix in the new header. Thank goodness for stream editors. file: [8e32df13dc] check-in: [386316db07] user: stephan branch: trunk, size: 33180
15:46
Replaced the overwhelming majority of license headers with the new project-standard one. Left a few as they were for files which were imported essentially unchanged from Fossil or, in the case of SHA1/SHA3/MD5 bits, other 3rd-party sources. file: [87ae2883d9] check-in: [fa5fb24496] user: stephan branch: trunk, size: 33172
13:45
Renamed FCliCommand to fcli_command for consistency's sake. file: [64ef2a82fb] check-in: [92aa86396d] user: stephan branch: trunk, size: 33108
2021-02-28
11:33
API doc touchups. file: [1c8d6e2e28] check-in: [f27c0b7c9c] user: stephan branch: trunk, size: 33098
10:58
Consolidated some duplicate fcli init code. Added help support for FCliCommand, such that if the first argument after the command name is 'help' and it has fcli_cliflags set then the help for just that command is invoked. e.g. (f-wiki ls help) shows just the help for the ls command. file: [f2ae4bd659] check-in: [163c5ac4b8] user: stephan branch: trunk, size: 33770
09:50
Reworked the fcli flag handling to accept and convert a range of flag types. It requires some pointer care on the user's part but is far more flexible. file: [4a6851aa21] check-in: [fa7c45e1ef] user: stephan branch: trunk, size: 33258
08:30
Minor doc tweaks. file: [1954adccf2] check-in: [952718f17b] user: stephan branch: trunk, size: 29171
08:13
Changed how fcli handles verbose help mode (multiple -? act like higher verbosity levels). Improved catching/reporting of flags which require a value but don't get one (lol, which breaks f-checking -d -). Added f-_template.c for use as a copy/paste basis for new f-apps. file: [9c5c21472a] check-in: [41295403c0] user: stephan branch: trunk, size: 28614
04:57
fcli now uses its own FCLI_RC_HELP, instead of hijacking FSL_RC_BREAK, to indicate that --help was triggered. file: [747289dfe5] check-in: [d0edf4583f] user: stephan branch: trunk, size: 26451
02:50
Removed 'required' flag from fcli_cliflag (it was particularly useless with boolean flags). file: [0478ab992e] check-in: [19fce623c4] user: stephan branch: trunk, size: 24447
2021-02-27
14:29
Finished porting the f-apps to the new CLI handling bits. Replaced fcli::appHelp with what was formerly fcli::appHelp2. file: [3b9bb882ea] check-in: [ca464b5b74] user: stephan branch: trunk, size: 24724
13:13
More fcli CLI reworking. Renamed FossilCommand to FCliCommand and expanded it with a CLI flags array for command-specific flags dispatching and unifying help text generation for command-driven apps like f-wiki and f-config. file: [64f46f5b41] check-in: [36bb349a93] user: stephan branch: trunk, size: 24773
12:04
Ported f-wiki to the new CLI flags mechanism and extended the fcli public API a bit to be able to support command-dispatch-style apps like f-wiki. file: [b594ac09a4] check-in: [97a2679fd1] user: stephan branch: trunk, size: 23946
11:06
Doc additions and removed some dead code. file: [9b953ac8e3] check-in: [14ba664742] user: stephan branch: trunk, size: 22577
10:59
f-timeline ported to new CLI flag handling. file: [7e4603ab2a] check-in: [62eb079a3c] user: stephan branch: trunk, size: 22464
07:51
Ported f-query to the new CLI flag bits. file: [70128bdf89] check-in: [9d212daff6] user: stephan branch: trunk, size: 21574
06:05
More work on the new fcli flags infrastructure. file: [e44d4e7fee] check-in: [6865f151f9] user: stephan branch: trunk, size: 21545
2021-02-26
17:36
More work on the CLI flag handling. Time for a break. file: [72db69f9ce] check-in: [fba3a91a5a] user: stephan branch: fcli-flag-rework, size: 21261
16:47
More work on the fcli argument handling rewrite. file: [9d7965668e] check-in: [490b7ab32e] user: stephan branch: fcli-flag-rework, size: 21260
14:04
Reworking how fcli flag handling is done. file: [604d80af76] check-in: [dad2f76f30] user: stephan branch: fcli-flag-rework, size: 19715
2021-02-12
03:37
Minor doc updates. file: [d7a0b6981f] check-in: [85c5517be8] user: stephan branch: trunk, size: 18519
2021-02-11
19:13
Completely reimplemented ownership semantics of fcli argument/flag memory, greatly simplifying app-side management of those. Now fcli sticks all of them in fcli_fax() so that their lifetime is predictable and managed, so clients no longer have to free them. file: [1a507cd122] check-in: [4307886eab] user: stephan branch: trunk, size: 18381
00:16
Added f-parseparty, which parses all of the artifacts in a repo, and uncovered a serious manifest parsing bug in fossil(1) as a side effect. Fixed a memory ownership bug when manifest parsing fails, which led to a double-free. Related adjacent touchups. file: [7d455a12b2] check-in: [0163960ce0] user: stephan branch: trunk, size: 18434
2021-02-10
15:45
Added fcli_fax() (free-at-exit). file: [72b44dd91c] check-in: [e8b7fd94e6] user: stephan branch: trunk, size: 18436
2021-02-09
04:25
Minor doc updates. file: [fd32db1c77] check-in: [0d0a30f979] user: stephan branch: trunk, size: 17793
00:18
Updated license text in almost all C/H to claim copyright while attributing all of the files as heavily derived from DRH's work. file: [2ebb4b7423] check-in: [631fb3f69a] user: stephan branch: trunk, size: 17779
2021-02-07
14:31
Globally replaced http://... URLs with https://.... Most of them probably still work, too. file: [94aa8865c9] check-in: [6af7b3b7c8] user: stephan branch: trunk, size: 17720
2014-10-01
06:15
marked as FSL_EXPORT various symbols; this change set is limited to the ones that are needed by the various f-apps, but this is not complete for general use of the library. I am doing this change in two phases simply because it gives me a way to see what methods have been exercised (by f-apps) and which have not. file: [ee430ea994] check-in: [7b651689f3] user: dave branch: feech-dave-msvcsupport001, size: 17719
2014-07-24
17:05
Reformatted, now that i have finally taught emacs to stop indenting for the C++-mode extern "C" block. file: [881f8797c8] check-in: [dd07d92271] user: stephan branch: trunk, size: 17539
2014-05-29
08:51
Portability fixes: changed char to int in places which use 3-value logic. file: [e05f6707ab] check-in: [fbf99d6e80] user: stephan branch: trunk, size: 18634
2014-04-19
20:14
cleanups in the new --help bits. file: [c3c46f8100] check-in: [d7968f7790] user: stephan branch: trunk, size: 18635
20:08
Started working on a new fcli --help mechanism. file: [f8db46da7b] check-in: [449e9406f5] user: stephan branch: trunk, size: 17794
2014-04-03
17:19
fcli now elides global/framework help options unless --global is passed, and instead adds a hint about that option to the --help output. file: [956cd3b46c] check-in: [734b3f5352] user: stephan branch: trunk, size: 16982
2014-04-01
17:04
Minor milestone: f-vdiff basically works. Just need to add diff-vs-checkout support. Added fsl_isatty() b/c it is needed by a couple of apps (could alternately go in fcli). file: [a0da2a43fe] check-in: [ab6bf194c2] user: stephan branch: trunk, size: 16799
2014-03-30
12:18
minor doc updates. file: [9fc5deb45a] check-in: [e0c522728b] user: stephan branch: trunk, size: 16972
2014-03-26
15:48
Fluff: started adding basic ANSI color support to text-mode diffs. Only context diffs for the time being. file: [2e79ef6e38] check-in: [41e6280df7] user: stephan branch: trunk, size: 16836
2014-02-14
09:05
Globally changes the API docs from fossil/sqlite-style '**' to Doxygen-friendly format because the extra stars hinder writability/changability and require an extra filter at the doxygen-processing level. file: [1e147925ab] check-in: [a2cbd2e343] user: stephan branch: trunk, size: 16664
2014-02-13
11:29
added fcli_end_of_main(). file: [654cad3ccd] check-in: [1da01cd5c0] user: stephan branch: trunk, size: 16916
2014-02-07
17:23
minor API renaming. Added multiple-glob and invert-glob support to f-ls. Doc touch-ups. file: [9f807ca8b6] check-in: [9cf3c16ca6] user: stephan branch: trunk, size: 16030
2014-02-06
17:26
Added fsl_confirm() family of functions for up-coming features. Fixed overwrite-repo in fsl_repo_create() (it previous didn't do anything useful). Changed how fsl_cx stores its default user name, and it now takes the default user name from a repo when opening it (where user.id==1). Other minor cleanups and tweaks. file: [864ac791c4] check-in: [ebda4a36e3] user: stephan branch: trunk, size: 16021
2014-02-01
12:15
Refactored fsl_config_xxx() impls for cached statements. Added unit tests for the config get/set APIs. file: [70c1997f3c] check-in: [43d76d6664] user: stephan branch: trunk, size: 16210
10:46
Added 'set' and 'unset' features to f-config. file: [8d7575cd57] check-in: [731e2f05d9] user: stephan branch: trunk, size: 16168
2014-01-31
23:57
Ported in a public domain strftime() impl, for potential use with the checkout-related functionality. Fixed a clang warning. file: [63d5fc7ed2] check-in: [615b6d29bc] user: stephan branch: trunk, size: 16067
2014-01-30
20:36
Re-thought/implemented fsl_repo_dir_names() to return all dir names when given an RID, use the checkout if rid==0, and all versions if rid is negative. Other minor refactoring/renaming. Fixed fsl_cx_filename_collation() to return the right string. file: [637e021f83] check-in: [22ce993a61] user: stephan branch: trunk, size: 15958
2014-01-25
15:01
minor internal restructuring in fcli. file: [1fc4449429] check-in: [bbe93aa209] user: stephan branch: trunk, size: 15958
2014-01-22
20:57
doc fixes/tweaks. i _think_ i finally got the doxygen INPUT_FILTER doing the right thing wrt to the fossil(1)-style comment blocks in conjunction with @code/@endcode. file: [5a878afcbd] check-in: [89554a5d7f] user: stephan branch: trunk, size: 15923
20:06
Added a minor maintenance reminder. file: [300da28197] check-in: [2303065b50] user: stephan branch: trunk, size: 15923
2013-09-18
17:19
Extended fcli to allow client to specify the output channel used by f_out() and friends (so it can now be used with a GUI app). file: [9c16241a10] check-in: [9c8f77e838] user: stephan branch: trunk, size: 15802
2013-09-16
16:25
second half of previous commit, plus some copy/paste comment corrections. file: [f9802a604d] check-in: [e0996075b9] user: stephan branch: trunk, size: 15455
2013-09-11
19:58
Playing with __attribute__. file: [29ffa173c5] check-in: [039b1b7f4d] user: stephan branch: trunk, size: 15318
2013-09-10
14:23
Resolved task [ef8cd96ec9]: refactored fsl_deck_output() to not need a fsl_cx/db handle. file: [108d90f292] check-in: [8af01f757e] user: stephan branch: trunk, size: 15176
2013-09-08
15:39
Lots of minor additions and tweaks, mainly in support of app-level code. file: [b283a2ba9b] check-in: [7bfbc3dba6] user: stephan branch: trunk, size: 14695
2013-09-04
21:09
fixed a missing extern for fcli, which caused an ODR violation with tcc. Added -O0 to debug compile flags. file: [8245c4fcb7] check-in: [34f559dc49] user: stephan branch: trunk, size: 14519
2013-09-03
09:43
More fcli refactoring via perl. Fixed a broken assertion in f-sanity. file: [10d9386666] check-in: [0333cc9077] user: stephan branch: trunk, size: 14512
2013-09-02
22:11
fcli now treats a first non-flag argument of "help" as help for all apps, not just dispatched-by-name commands. file: [581574bd0d] check-in: [ea8eb63bb7] user: stephan branch: trunk, size: 13534
2013-09-01
13:28
Fixed f-tag --help broken by recent refactoring. Minor improvements to the fcli error reporting. file: [e7533245a7] check-in: [4d8b91a4ae] user: stephan branch: trunk, size: 13320
12:54
s/fcli_cli_/fcli_/g. Minor error text change. file: [47b7d0ffa2] check-in: [945fea799c] user: stephan branch: trunk, size: 12528
2013-08-31
13:02
Doc additions, minor error reporting cleanups. file: [3e36df42b2] check-in: [8f05724070] user: stephan branch: trunk, size: 12556
11:32
Re-did how fcli hooks into app-local help, to avoid an unresolved symbol in the main lib. file: [111f37ea14] check-in: [6f54534d74] user: stephan branch: trunk, size: 12553
10:49
Renamed and modified FossilApp.h → include/fossil-scm/fossil-cli.h. Renamed the FossilApp API to fcli. Moved its header into the public space. file: [47c7f122e8] check-in: [5d3767f8f0] user: stephan branch: trunk, size: 12500