Fossil

Timeline
Login

Timeline

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

About branch checkin-without-checkout

This branch is for the "checkin without a checkout" feature, a.k.a. "mini-checkin" or "mini-commit". It is a pared-down variant of the checkin command which supports adding or modifying only a single file, and it does so without the requirement of having a checkout database. The main purpose of this feature is to enable web-based editing of files, e.g. embedded documents, and its infrastructure is fully separated from its "control interface" - CLI or web input.

Discussion: https://fossil-scm.org/forum/forumpost/32929ec967

This feature is disabled by default, and enabling it requires setting a comma- or newline-delimited list of filename globs as the fileedit-glob repository setting (part of the "project" group of config options). Those patterns specify the whitelist of files which may be edited with this page. An empty list disables the feature and a single * enables it for all non-binary files. Binary files are rejected by the editor, regardless of the whitelist. The suggestion has been made for the page to offer the ability to upload new versions of binary files, and that will be investigated as soon as it itches someone enough to look into it.

25 most recent check-ins related to "checkin-without-checkout"
2020-05-05
04:06
Initial work on ajaxifying /fileedit. Fetching content, preview, and diffs are ajax'd, but save is not yet. ... (check-in: 8edf9dbf user: stephan tags: fileedit-ajaxify)
2020-05-04
23:26
Moved some generic fileedit code to style.c. Refactored /fileedit to not require JS to update version info, making this impl pure no-JS. Now to ajaxify it... ... (Closed-Leaf check-in: 8d4ce834 user: stephan tags: checkin-without-checkout)
20:16
Added /fileedit links to /finfo and /artifact. ... (check-in: fe925e7d user: stephan tags: checkin-without-checkout)
17:48
Add the submit button IDs programmatically (was previously hand-coded), to avoid them getting out of sync with their enum. ... (check-in: 032a0326 user: stephan tags: checkin-without-checkout)
17:44
Added SBS/unified diff to /fileedit. ... (check-in: ae8e24d0 user: stephan tags: checkin-without-checkout)
16:22
Style improvements and code consolidation. ... (check-in: 67a2bfb0 user: stephan tags: checkin-without-checkout)
13:12
Added preview render mode selection list. ... (check-in: 65b6c01a user: stephan tags: checkin-without-checkout)
12:46
Implemented HTML-in-iframe preview. Related internal cleanups. ... (check-in: ac309281 user: stephan tags: checkin-without-checkout)
12:10
Implemented preview mode for plain text and wiki/embedded doc, but how to populate the necessary iframe for HTML preview, without a URL back to the preview content, eludes me. ... (check-in: 079030fa user: stephan tags: checkin-without-checkout)
2020-05-03
14:57
Moved /fileedit and friends to fileedit.c. ... (check-in: 6cdb091a user: stephan tags: checkin-without-checkout)
14:38
Removed a couple dangling undefs from the previous commit. ... (check-in: dcc97762 user: stephan tags: checkin-without-checkout)
12:21
New CX(...) macro for rendering HTTP reply text, as an alternative to the "@ ..." markup provided by translate.c. ... (check-in: 0d160f9f user: drh tags: checkin-without-checkout)
2020-05-02
22:34
Removed some irrelevant comments. ... (check-in: 7243aea1 user: stephan tags: checkin-without-checkout)
21:57
Fixed a double-free caused by refactoring. Was being triggered in web mode but not CLI mode, strangely enough, though the code was hit by both. Other minor cleanups and fixes. ... (check-in: 6f749dfb user: stephan tags: checkin-without-checkout)
20:52
Fixed copy/paste error which caused the comment text to get duplicated into the N-card. ... (check-in: 2ee46284 user: stephan tags: checkin-without-checkout)
20:46
Fixed a bogus bit of css. ... (check-in: b203f2e9 user: stephan tags: checkin-without-checkout)
17:50
Improved some labels and help text and corrected the 'hint' styling to encompass elements outside of the FORM element. ... (check-in: f41eb696 user: stephan tags: checkin-without-checkout)
17:41
Comment updates. ... (check-in: 43d6e3ca user: stephan tags: checkin-without-checkout)
16:48
Minor error message improvements. ... (check-in: 80345fd1 user: stephan tags: checkin-without-checkout)
16:43
Instead of injecting multiple mini-scripts, queue up script code and emit it in one anonymous function at the end. Update the version number and permalink after saving so that we're basing on the new version. ... (check-in: 6407b6ca user: stephan tags: checkin-without-checkout)
15:03
Added fileedit-glob setting (/fileedit whitelist) and honor it in /fileedit. Added mini-checkin options to specifically convert EOLs to Unix or Windows styles. /fileedit saving now more or less works, but still needs to update the 'r' value after editing or else we're stuck at the old parent version. ... (check-in: 33861414 user: stephan tags: checkin-without-checkout)
2020-05-01
14:22
Initial work on /fileedit page. First dry-run save was just performed. ... (check-in: fbd31f20 user: stephan tags: checkin-without-checkout)
07:47
Got basic /fileedit page skeleton in place. It can load/display a file, with some limits, but cannot yet do anything with it. ... (check-in: b5e3bc9e user: stephan tags: checkin-without-checkout)
07:33
Added quotes around the URLs passed to the browser for the ui command so that URL parameters containing an ampersand get passed on correctly. ... (check-in: 126d34fb user: stephan tags: checkin-without-checkout)
05:38
Mini-checkin now pre-allocates some memory for the output manifest. Internal doc updates. ... (check-in: bfe7750e user: stephan tags: checkin-without-checkout)