Fossil

All files named "src/dispatch.c"
Login

All files named "src/dispatch.c"

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

History for src/dispatch.c

2024-02-02
22:18
Remove trailing whitespace from non-external C files. ... (file: [23c8f2cd] check-in: [7db0a2d9] user: danield branch: fix-overlength-lines, size: 47332)
16:26
Fix lines over 80 characters long, excluding external source files and @-lines. ... (file: [54abfe39] check-in: [942f691b] user: danield branch: fix-overlength-lines, size: 47367)
2024-01-18
14:50
Fix several harmless compiler warnings (turned off in the standard build). ... (file: [7532029f] check-in: [ab054759] user: danield branch: trunk, size: 47351)
2023-11-14
20:17
Add search for help pages. ... (file: [5abede78] check-in: [f0b96089] user: preben branch: search-help-pages, size: 47862)
2023-10-16
14:33
Implement propagating settings that are sent to clients that pull. The warning-policy is used as example, but not yet applied. ... (file: [1e2892cc] check-in: [f812fedc] user: preben branch: warn-on-merging-private-branch, size: 47676)
2023-09-25
15:47
If the value of a setting is changed into an empty string, then unset it, except for the rare setting that has the new keep-empty property. ... (file: [5689a694] check-in: [b9bbb8d7] user: drh branch: unset-empty-settings, size: 47328)
2023-09-19
11:31
Improvements to help-text HTML formatting. ... (file: [132188a8] check-in: [ccc780f5] user: drh branch: trunk, size: 47254)
2023-07-16
20:47
Add calls to cgi_check_for_malice() on many more web pages. Log all 418 responses to the error log. ... (file: [490e92b0] check-in: [40266bf9] user: drh branch: verify-options-cgi, size: 47047)
2023-07-09
03:13
Show default value of settings that have a default in 'fossil help SETTING' output. These values are otherwise only documented in the source code. ok stephan, danield ... (file: [3a4d8173] check-in: [1e1a319e] user: mark branch: trunk, size: 47019)
2023-05-18
03:04
Fix harmless compiler warnings. ... (file: [1b0d9e7c] check-in: [586967cc] user: mistachkin branch: trunk, size: 46760)
2023-04-14
15:31
Squelch an unitialized var warning from gcc 12.2.1 on Alpine Linux. ... (file: [4f081081] check-in: [3783a24e] user: stephan branch: trunk, size: 46760)
2023-01-09
13:06
Further consistency improvements in docs for various commands. ... (file: [85cbcbe0] check-in: [2512d2d4] user: km branch: trunk, size: 46754)
2022-11-13
16:26
Apply fixes to all web views to pass WCAG 2.1 tests performed by "axe DevTools" browser extension. Most fixes related to screen reader compatibility, like making sure that form elements have labels. Some color changes to improve contrast on Default skin. Made more HTML5 compliant. Minor improvement to select combo boxes for UX. Improved Search form UX. Two minor bug fixes for malformed HTML. Fixed help pages to resolve issues with non-compliant HTML being generated. Mostly documented at https://fossil-scm.org/forum/forumpost/aafb17a981df4166 ... (file: [ef7b69dc] check-in: [1f231db3] user: ericwikman branch: wcag-2.1, size: 46749)
2022-09-01
01:29
Merge in trunk. Resolve a shadowed var in dispatch.c which led to an assigned-but-not-used warning. ... (file: [a7e09a0e] check-in: [a257fbd9] user: stephan branch: help-aliases-unique, size: 46761)
2022-07-19
14:47
Add aliases as a new command type and display these next to the corresponding main command in /help. Make sure that for 'test-all-help' command and webpage each help string is output at most once. ... (file: [a2e14b8b] check-in: [4b8efc05] user: danield branch: help-aliases-unique, size: 46788)
2022-04-14
17:41
Added new loadavg-exempt WEBPAGE: flag for mkindex.c which exempts a given page from the load_control() check. Currently applied to /chat and its dependents: /builtin and /style.css. ... (file: [03d4f3e6] check-in: [5c49ab3c] user: stephan branch: load-control-rework, size: 43014)
2022-04-05
19:51
When reporting the list of matching ambiguous sub-commands, make sure settings with the same prefix are not listed. ... (file: [6fb0d060] check-in: [bb5162fe] user: mgagnon branch: ambiguous_cmd_fix, size: 42940)
16:49
Don't give an "ambiguous command prefix" error when reported ambiguous commands are aliases to each others. Assume alias point to same function pointer and are all consecutive in the aCommand[] list. ... (file: [dcc4f7b8] check-in: [862ce7ce] user: mgagnon branch: ambiguous_cmd_fix, size: 42715)
2022-02-20
19:14
Fix typo in the output of "fossil help -o". ... (file: [14efca09] check-in: [5b4a729b] user: drh branch: trunk, size: 42641)
2022-02-01
22:03
Add --case-sensitive and --nocgi to the output of 'fossil help -o', and --cgitrace to the webpage for global options. ... (file: [5053f9bb] check-in: [54cdf297] user: danield branch: trunk, size: 42641)
21:24
Document the "--chdir" global option. (on "fossil help -o") ... (file: [ef9df7cc] check-in: [4bb20904] user: mgagnon branch: trunk, size: 42531)
2021-12-16
09:43
Added missing help text reference to the -o/--options help flag, per forum post 9b3a25eb2b. ... (file: [3707f49c] check-in: [784f147d] user: stephan branch: trunk, size: 42454)
2021-09-08
17:23
help: added optional 'hidden' flag to WEBPAGE/COMMAND/SETTING entries, which causes them to be elided from most listings. They can still be invoked by the help system if their name is used, but they won't be listed. This is primarily intended for internal-use ajax routes. ... (file: [5d92dfc9] check-in: [701c6dc2] user: stephan branch: trunk, size: 42337)
2021-07-21
18:48
Cleanup for the "fossil help" command implementation. ... (file: [a091e4fe] check-in: [8a231a79] user: drh branch: trunk, size: 41784)
2021-07-14
23:58
Recreate the ability to view all the settings easily in one command that was lost with [f74f7014c2271beb] and enhance the output to show whether or not a setting is versioned. ... (file: [48c7834a] check-in: [b572b766] user: andybradford branch: verbose-settings-help, size: 41588)
2021-03-11
13:22
Numerous help text consistency tweaks based on forum discussion 8c644048f0. ... (file: [6f416461] check-in: [4cb50c4e] user: stephan branch: trunk, size: 41260)
2021-02-02
23:01
added help --everything option that borrows functionality refactored from test-all-help ... (file: [f59b65ab] check-in: [c39e23cd] user: sdr branch: help-full, size: 41260)
21:28
improved help text for the help --full option ... (file: [fe92c1b8] check-in: [cf36fbb9] user: sdr branch: help-full, size: 40829)
20:22
modified to not change based on whether destination is a tty, but to provide a help --full option to display all the text at once for those who would like to pipe it through grep / less / capture to a file ... (file: [b3ab7b6a] check-in: [93fd6d33] user: sdr branch: help-full, size: 40687)
16:01
modified help command to output detailed help information when stdout is not a tty (note: branch name changed after consensus seemed to indicate original concept was undesirable) ... (file: [75bee316] check-in: [d7929436] user: sdr branch: help-full, size: 40571)
2020-12-23
00:58
Get the /chat-send and /chat-poll interfaces working. ... (file: [568c17e7] check-in: [25828eb5] user: drh branch: chatroom-dev, size: 40071)
2020-12-22
12:13
Removed the parameter from style_finish_page() since the resulting content div class is now redundant with respect to the body class. This potentially breaks CSS made against old class names that a prior commit on this branch changed, but such skins would be made against an unreleased version of Fossil, it's unlikely many are using that first version of the feature anyway, and most of the class names did *not* change unless you were targeting a "div" instead of "body" or just a generic class name. None of the shipping skins are affected. ... (file: [32b4aab9] check-in: [0e83ca88] user: wyoung branch: body-feature-class, size: 39591)
11:58
Calling the new style_set_current_feature() function to override the new TH1 variable $current_feature for Fossil UI pages where the page name isn't what we want used as the "body" CSS class. For the most part, this matches the value currently being passed to style_finish_page(), but a few have changed with the benefit of hindsight. Not all calls to style_finish_page() have a corresponding call to the new function since the default value for $current_page now suffices. ... (file: [d39ab221] check-in: [8ac0830b] user: wyoung branch: body-feature-class, size: 39603)
2020-11-25
21:14
Eliminate unnecessary variable. ... (file: [11538cc4] check-in: [aca2988f] user: andybradford branch: ambiguous-help, size: 39530)
20:59
Restore lost 's' from command-line option so documentation matches code. ... (file: [42cd4de2] check-in: [3eaaa565] user: andybradford branch: ambiguous-help, size: 39576)
20:55
When using "fossil command --help" restrict the ambiguous matching to just commands to avoid breaking prefixes that otherwise work fine as a command. For example, "fossil di" works fine as a command, but "fossil di --help" suddenly makes it ambiguous. ... (file: [ef6f584e] check-in: [99f650af] user: andybradford branch: ambiguous-help, size: 39576)
2020-11-07
13:25
Rename the "style_body_and_footer()" interface to "style_finish_page()" and add a more detailed header comment to the implementation. ... (file: [d9f040e8] check-in: [942b2076] user: drh branch: default-css-cleanups, size: 39257)
2020-11-05
23:15
Added a parameter to style_footer() and renamed it to match its actual function (style_body_and_footer()) so we can add a CSS class to each page that indicates which major Fossil feature served the page, so we can have module-specific CSS. ... (file: [f605c575] check-in: [ef5424b6] user: wyoung branch: default-css-cleanups, size: 39265)
2020-10-04
14:35
Exchanged most uses of %s(g.zTop) and such in the code with use of %R in Fossil's special printf() type functions. (The branch is named after just one of several of these, mprintf(), being one of the shortest names.) At the least, this is shorter, simpler code, but there is also some hope that it may fix some doubled slash problems someone is having on the forum. (https://www.fossil-scm.org/forum/forumpost/1ea72176e0) ... (file: [bd9be74b] check-in: [2907721a] user: wyoung branch: prefer-mprintf-r, size: 39235)
2020-08-26
21:43
Improvements to help-text HTML formatting. ... (file: [0c46e375] check-in: [517223ec] user: drh branch: trunk, size: 39243)
2020-08-12
17:20
Add new columns "formatted" and "html" to the "helptext" virtual table. ... (file: [e8b2a8e2] check-in: [53adb7dc] user: drh branch: trunk, size: 38508)
2020-08-11
11:41
Re-added the P tags removed in [9850dd3f22db], as they're needed for proper spacing. ... (file: [7b6bc99d] check-in: [689b7f6d] user: stephan branch: trunk, size: 38095)
11:13
Corrected help_to_html() to escape less-than signs so that script tags in help text do not break the page. Removed a semantically illegal P tag from the HTML-format help. ... (file: [6a8b23f8] check-in: [9850dd3f] user: stephan branch: trunk, size: 38285)
2020-08-09
13:49
Revise and simplify the list of 1st-tier commands that are shown by the "fossil help" command. ... (file: [2c149514] check-in: [84f697e5] user: drh branch: trunk, size: 37938)
2020-08-08
23:55
Fix the /help webpage to accept prefixes on the cmd= query parameter. ... (file: [cb991abe] check-in: [f2f419ea] user: drh branch: trunk, size: 37902)
20:13
Enhance built-in help text formatting so that text contained within [[...]] is a hyperlink to another help page. ... (file: [4c76a9ce] check-in: [71992d0f] user: drh branch: trunk, size: 37887)
2020-07-18
22:21
Minor formatting tweak to the help-to-html converter. ... (file: [03e6868b] check-in: [bb6e1fe7] user: drh branch: trunk, size: 36557)
2020-06-27
17:05
Typos in the help text and the change log. ... (file: [2472dfa3] check-in: [cd061779] user: drh branch: trunk, size: 36544)
15:06
Add query parameters "plaintext" and "raw" to the /help page. ... (file: [f640e207] check-in: [8530666c] user: drh branch: trunk, size: 36544)
2020-06-25
00:16
Adjust help text to work better with the new formatter. ... (file: [28fd7624] check-in: [a8a60699] user: drh branch: formatted-online-help, size: 35807)
2020-06-24
21:50
Automatically add HTML formatting to the on-line help when displaying in a web-page. (This is a work-in-progress. No everything displays correctly, yet.) ... (file: [d7721d8c] check-in: [f1230cb3] user: drh branch: formatted-online-help, size: 35373)
2020-06-20
00:15
Add the "helptext" virtual table. This is a stepping-stone to adding help-text search. ... (file: [862b622c] check-in: [b2dacfcd] user: drh branch: trunk, size: 30196)
2020-06-19
20:20
Remove a harmless unused variable. ... (file: [7aa3b369] check-in: [45372c12] user: drh branch: trunk, size: 23593)
20:13
The "fossil test" command offers suggestions if the help requested is not recognized. ... (file: [95408728] check-in: [a99d9173] user: drh branch: trunk, size: 23705)
17:54
Add the test-command-stats command. ... (file: [d1ea2aa3] check-in: [c7bb647f] user: drh branch: trunk, size: 21439)
2020-05-27
13:28
Demonstrate how the mkindex.c utility could be extended to automatically put a complete web-page construction inside a transaction. ... (file: [01b2caca] check-in: [67c42040] user: drh branch: auto-webpage-txn, size: 20604)
2020-04-05
23:45
Match the COMMAND and WEBPAGE names with _cmd and _page functions; forumpost/045bffda68 ... (file: [771da779] check-in: [06afb702] user: ashepilko branch: api-cleanup, size: 20528)
2020-02-15
18:48
Improvements to the /test-all-help webpage. ... (file: [2539d055] check-in: [9e408340] user: drh branch: trunk, size: 20528)
2019-08-27
20:57
For candidate CGI parameter names that start with an uppercase letter, convert them to lowercase and then add. ... (file: [97cfd9c9] check-in: [b47b6b69] user: mistachkin branch: noJsonCgiFlag, size: 19647)
05:34
If the '--cgiupperparamsok' command line option or 'uppercase_params' CGI control line are present, allow parameter names to start with an uppercase letter. ... (file: [682ac287] check-in: [ab0d81f8] user: mistachkin branch: noJsonCgiFlag, size: 19549)
2019-07-25
18:34
Defer decoding POST parameters until after the webpage name is located. Do not do the decode if the webpage has the new "raw-content" property. Set that property on /ext so that is can relay the encoded content to sub-cgi. ... (file: [710b7743] check-in: [e4849f58] user: drh branch: extension-cgi, size: 19547)
2019-01-27
15:38
Add the global --comment-format command-line option as an alias for --comfmtflags. ... (file: [e56f57d2] check-in: [a0d10b91] user: florian branch: comment-format-setting, size: 19471)
2018-12-12
14:28
Fix the "fossil test-all-help -e" command so that it shows help for test commands and settings. ... (file: [45ef2434] check-in: [cb3a8905] user: drh branch: trunk, size: 19419)
2018-10-06
17:10
Fixed an HTML typo in the /help page, reported by "Z03": (https://fossil-scm.org/forum/forumpost/13c80e13e2 ... (file: [257bb4a3] check-in: [1f4a9eb9] user: wyoung branch: trunk, size: 19372)
14:14
The "fossil help -o" command shows command-line options that are common to all commands. ... (file: [e37ab3a5] check-in: [50eb6bd5] user: drh branch: trunk, size: 19372)
2018-08-21
01:33
Dynamic number of columns on the /help page, based on screen width ... (file: [129a4751] check-in: [1d495e89] user: drh branch: trunk, size: 18059)
2018-07-15
19:56
Clarify the difference between fossil_fatal() and fossil_panic(). The fossil_panic() interface puts a message on the error log when generating webpages. Otherwise the two routines are identical. Convert some fossil_fatal() calls into fossil_panic() where appropriate. The goal here is to limit messages on the error log to things that require attention from the system administrator, or represent bugs. ... (file: [3d568ac5] check-in: [3f5ab717] user: drh branch: trunk, size: 19277)
2018-02-24
17:08
Fix ETags support for when compiling with FOSSIL_ENABLE_TH1_HOOKS. ... (file: [13c0d1cf] check-in: [43a66b58] user: drh branch: etags, size: 19707)
2018-01-23
22:34
Stop including settings in the 'Available commands' section of the help web page. Fix typo of '--setting' help option. ... (file: [15e80d7d] check-in: [4962fa9e] user: mistachkin branch: trunk, size: 19277)
2017-10-30
13:20
Add a blank entry to the end of the Setting array so that loops can be terminated by checking for a null zName pointer. ... (file: [9103c1b1] check-in: [df654bd9] user: drh branch: trunk, size: 19143)
2017-10-29
23:59
Update the 2.4 change log. ... (file: [a704180a] check-in: [266a311b] user: drh branch: trunk, size: 19139)
2017-09-27
03:23
Assorted cleanups associated with [f74f7014], most notably making "fossil dif" work again despite the ambiguity with setting "diff-command" ... (file: [6f049ae1] check-in: [2b6a34c7] user: andygoth branch: trunk, size: 19016)
2017-09-26
14:46
Fix double "However" in comment. Some more end-of-line spacing. Nothing functional. ... (file: [acd835be] check-in: [ce1bc4fb] user: jan.nijtmans branch: trunk, size: 18518)
2017-09-20
13:36
Fix another harmless compiler warning. ... (file: [f5e5e57e] check-in: [49b6f89b] user: drh branch: trunk, size: 18519)
13:35
Remove dead code to fix harmless compiler warnings. ... (file: [5dc7fdbe] check-in: [4c666ccf] user: drh branch: trunk, size: 18515)
04:05
Correct comment typos ... (file: [ee692a51] check-in: [b1191c1e] user: andygoth branch: trunk, size: 18569)
03:27
Add preliminary support for URL aliasing. Create aliases by visiting the "URL Aliases" subscreen under the Setup menu. ... (file: [1d4bc0af] check-in: [8131f1c5] user: drh branch: trunk, size: 18567)
2017-08-31
05:51
Correct typo in help's help ... (file: [b70ca686] check-in: [0d8c3c2b] user: andygoth branch: trunk, size: 16617)
03:37
Improved error message when the "help" command cannot find its argument. ... (file: [db15fd91] check-in: [28178001] user: drh branch: trunk, size: 16617)
2017-08-30
23:03
Enhancements to the /setup_settings web page. Provide hyperlinks to documentation for all settings. ... (file: [72770a44] check-in: [5068f23d] user: drh branch: improved-setting-help, size: 16526)
17:08
Enhance the mkindex utility to extract help text for each setting separately and automatically build the aSetting table. ... (file: [3c730e82] check-in: [3d02004f] user: drh branch: improved-setting-help, size: 15435)
2017-07-12
16:57
Be careful not to return a pointer to a webpage generator as a command-line command method. ... (file: [63d8b826] check-in: [38df2a45] user: drh branch: trunk, size: 14561)
2017-05-12
16:22
Fix an XSS issue with the /help webpage. ... (file: [c4135c15] check-in: [db482f16] user: drh branch: trunk, size: 14502)
2016-11-05
14:31
Change help index command list from seven columns to six to better match the widths of the other lists presented on the page ... (file: [4e634c0c] check-in: [2f613574] user: andygoth branch: trunk, size: 14502)
14:30
In help index, display first-tier command names in bold ... (file: [44d74402] check-in: [37e8c173] user: andygoth branch: trunk, size: 14502)
14:22
Use symbolic name CMDFLAG_WEBPAGE instead of directly saying 0x08 ... (file: [2d21395a] check-in: [dfa23f5b] user: andygoth branch: trunk, size: 14321)
14:17
Ignore empty command name in help page so that /help/ is treated the same as /help ... (file: [1e5cb478] check-in: [e237cea4] user: andygoth branch: trunk, size: 14310)
14:15
Include name of command or page in help title ... (file: [be3cc485] check-in: [9b15ec0d] user: andygoth branch: trunk, size: 14301)
14:12
Remove "Command-line" from name of help page which documents web pages as well as commands ... (file: [bd5e835c] check-in: [ccd4ca87] user: andygoth branch: trunk, size: 14261)
14:07
Remove "Testpage:" from title of all-in-one help text page ... (file: [584c81f8] check-in: [d8506df1] user: andygoth branch: trunk, size: 14274)
2016-11-04
22:37
Consistently use the count(X) macro in place of sizeof(X)/sizeof(*X) throughout the Fossil core, excluding things that don't use makeheaders. Also use count(X) instead of ArraySize(X) which has the same definition. ... (file: [2d6e1392] check-in: [e5b62edb] user: andygoth branch: trunk, size: 14284)
21:32
Remove unused, undocumented zTitle argument to style_submenu_element(). This argument appears to have been unused all the way back to [dbda8d6ce9]. ... (file: [3ef20e76] check-in: [187424e8] user: andygoth branch: trunk, size: 14307)
2016-09-23
17:10
Add --html option to the 'test-all-help' command. ... (file: [52878ab4] check-in: [1763f287] user: mistachkin branch: trunk, size: 14323)
13:53
Add the help_to_html() routine which transforms plaintext help into HTML for display on web pages. So far it only surrounds the text with <pre>..</pre>. But it can (in theory) be enhanced to do more sophisticated formatting. ... (file: [5bac4dbd] check-in: [7a69e5db] user: drh branch: trunk, size: 13809)
02:10
Clarify the exact type used for cmdFlags. ... (file: [16b24486] check-in: [3ca2bc10] user: mistachkin branch: trunk, size: 13493)
2016-09-13
22:13
Pass the command flags into the TH1 hooks verbatim, without any masking. ... (file: [6adca854] check-in: [9595cfcd] user: mistachkin branch: trunk, size: 13493)
19:59
Revise the COMMAND: and WEBSITE: parsing to add the ability to specify flag options after the command or website name. ... (file: [50654e57] check-in: [555ddfec] user: drh branch: trunk, size: 13659)
18:03
Fix up some comments on the command and webpage name lookup logic. No changes to code. ... (file: [58f79ddb] check-in: [49703de7] user: drh branch: trunk, size: 13208)
17:51
Refactor command and webpage name lookup. Move all associated logic out of main.c and into a new file named "dispatch.c". There is now a single const array of objects named "aCommand" that contains all command and webpage names together with their help text. ... (file: [09716468] check-in: [e6aab1a4] user: drh branch: trunk, size: 13211)