gotweb

Branch


Log

Author Commit Date CI Message
Josh Rickmar 4d5ee956 2022-07-02T21:27:21 create and verify tags signed by SSH keys This adds a new -s flag to 'got tag' that specifies the signer identity (for example, a key file) of the tagger. The tag object will include a signature that validates each of the tag object headers and the tag message. Verifying these signed tags requires maintaining an allowed signers file which maps signer identities (i.e. the email address of the tagger) to SSH public keys. See ssh-keygen(1) for more details of the allowed signers file. After creating this file and providing the path to it in got.conf(5) using the allowed_signers option, tags may be verified using with 'got tag -V tag_name'. The return code will be non-zero if a signature fails to verify. ok stsp@
Stefan Sperling 4b752015 2022-06-30T21:35:28 switch 'tog diff' and 'tog blame' to Myers diff for speed Make the choice of diff algorithm configurable by diff API users. The got and gotweb programs keep using Patience diffs which are prettier than Myers. But tog should be as fast as possible since it is being used interactively. If performance of Patience diff gets improved later we can consider switching tog back over to it. ok tracey jamsek
Tracey Emery e6e73e55 2022-06-30T08:41:14 move remaining got_opentemp's out of blame. ok op@
Stefan Sperling f9d37699 2022-06-28T20:33:41 move got_opentempfd() out of lib/diff.c again ok tracey
Tracey Emery 1b484788 2022-06-28T18:34:57 move got_opentempfd out of blame_open ok stsp@ jrick@
Tracey Emery eb81bc23 2022-06-28T13:27:12 move got_opentempfd out of open_blob. ok stsp@
Omar Polo 58e31a80 2022-06-27T18:47:02 build with -Wwrite-strings Throwing this into the mix for a while, we can always get rid of it again if it becomes annoying. No objections from stsp@
Omar Polo 336075a4 2022-06-25T09:22:02 build with -Wmissing-prototypes ok stsp@
Stefan Sperling 75c1763d 2022-06-15T18:06:48 fix D_GOTWWW default path; gotweb can now run without a config file again ok tracey
Tracey Emery e17984a0 2022-06-15T15:33:46 clear gw_trans->pack_fds pointer in gotweb
Tracey Emery b0c3aa90 2022-06-15T15:28:07 fix recent regression in gotweb for pack_fds
Tracey Emery 0ae84acc 2022-06-15T13:52:20 move got_opentempfd out of got_repo_open. ok stsp@ thanks for all the help massaging this diff
Stefan Sperling b72706c3 2022-06-01T05:08:20 move creation of tempfiles outside of lib/diff.c ok tracey
Stefan Sperling d7b5a0e8 2022-04-20T14:00:12 inline struct got_object_id in struct got_object_qid Saves us from doing a malloc/free call for every item on the list. ok op@
Stefan Sperling 820e4466 2022-04-07T17:56:18 fix typo in comment: navicate -> navigate
Stefan Sperling 392891ce 2022-04-07T13:20:47 pass an already open commit object to the blame callback ok op@
Stefan Sperling a44927cc 2022-04-07T12:57:31 stop relying on commit cache for good performance of got_object_id_by_path() Instead of internally opening and closing the same commit object over and over again, require callers to pass an open commit object in. Avoids an inherent dependency on the commit object cache for reasonable performance. ok op@
Stefan Sperling 1a4ff8fa 2022-03-22T11:28:47 fix free() on uninitialized variable upon error in gw_output_file_blame() ok op@
Tracey Emery 39d5d1d2 2022-03-17T20:20:08 rm unused vars
Christian Weisgerber d58ddaf3 2022-03-17T20:02:40 const-ify tables ok thomas_adam millert
Tracey Emery 4362cf9c 2022-01-24T16:44:19 style
Tracey Emery b3f4d550 2022-01-24T16:36:16 unbreak gotweb index when pack files are missing
Stefan Sperling 00fe21f2 2021-12-31T09:11:21 add "e" (close-on-exec) flag to fopen(3) calls suggested by millert ok thomas_adam
Stefan Sperling 7cc76137 2021-11-14T10:34:31 gotweb does not actually use anything from worktree.c or fileindex.c
Christian Weisgerber 0c82d267 2021-10-15T15:18:30 sync with OpenBSD parse.y Explicitly cast "char" to "unsigned char" when assigned to "int" to prevent sign extension from breaking comparions against EOF or passing invalid arguments to ctype functions.
Stefan Sperling b343c297 2021-10-11T18:54:11 use a bloom filter to avoid pointless pack index searches
Stefan Sperling 67b631c9 2021-10-10T15:22:14 implement 'got diff -c' for diffing commits with optional filtering by path Need for filtering by path sugggested by kn@ ok naddy@
Christian Weisgerber 5d8cbca3 2021-09-29T19:53:08 pull in a type fix from the OpenBSD parse.y template Original commit message by deraadt: (unsigned) means (unsigned int) which on ptrdiff_t or size_t or other larger types really is a range reduction... Almost any cast to (unsigned) is a bug.
Christian Weisgerber d683c314 2021-09-29T19:43:01 fix unsigned/signed char mismatch in parse.y
Christian Weisgerber abc59930 2021-09-05T19:41:03 indentation fixes
Stefan Sperling c2d7bc3f 2021-08-31T19:11:16 remove superfluous strdup(3) from parse.y files; Patch by Martin Vahlensieck
Stefan Sperling e385fc42 2021-08-30T15:48:05 use gmtime_r(3) instead of localtime_r(3) to display time in UTC as intended Problem noticed by naddy due to failing regress tests at midnight, and then analyzed with additional help from millert. ok naddy
Tracey Emery c333d3f7 2021-06-25T21:27:40 goto the right label, so we can get previous on the last page of briefs
Tracey Emery 178d3e72 2021-06-25T20:43:34 we will never have a previous link on the summary page
Tracey Emery f75a37be 2021-06-25T20:35:11 fix missed commit found check
Tracey Emery 5a911940 2021-06-25T20:21:01 fix a glaring logic error in navigation for commits, briefs, and tags. now, we get the proper commit id from the tailq.
Christian Weisgerber dbdddfee 2021-06-23T20:48:35 switch from SIMPLEQ to equivalent STAILQ macros The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp
Stefan Sperling 7a6dddae 2021-06-18T08:06:21 make it possible to profile gotweb; tracey had the same diff
Stefan Sperling 245c7240 2021-06-17T16:36:47 unveil gmon.out if gotweb is being profiled ok tracey
Stefan Sperling 1d0f4054 2021-06-17T08:56:43 check for close(2) error in got_repo_close() and propagate errors up ok tracey
Tracey Emery 6648f956 2021-04-26T19:01:13 properly render an error page instead off returning 500. bug reported by Miniontoby via irc
Josh Rickmar ec6d1a36 2021-03-21T18:49:57 Fix strftime(3) short buffer checks strftime(3) returns 0 if the buffer was too short to write the complete string (including NUL) and will never return more than maxsize-1. ok stsp
Stefan Sperling 56b63ca4 2021-01-22T11:04:47 make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere ok millert, naddy
Stefan Sperling d9dff0e5 2020-12-26T21:32:01 switch reflist to TAILQ; insert elements more efficiently for sorted input ok naddy
Stefan Sperling 84de9106 2020-12-26T20:48:43 Add a refs argument to got_repo_match_object_id(), replacing 'resolve_tags' Make use of this where possible to avoid re-reading references from disk. ok naddy
Stefan Sperling 22c0f09d 2020-11-22T11:20:52 repair gotweb build after diff api changes
Stefan Sperling be659d10 2020-11-18T17:18:23 fix type of filesize output parameter of got_object_blob_dump_to_file()
Stefan Sperling 8b4e047e 2020-11-15T12:08:45 fix gotweb build; should have been part of 8fa913ec
Stefan Sperling c9d2b263 2020-11-11T11:09:51 make gotweb compile with the new diff implementation
Tracey Emery a5a8a332 2020-11-09T16:53:04 remove unused variable in gotweb.c, patch by Martin Vahlensieck (thanks)
Tracey Emery a03d32e0 2020-11-09T16:46:41 fix on keywork in gotweb parse.y, patch by Martin Vahlensieck (thanks)
Christian Weisgerber 62d463ca 2020-10-20T22:43:59 indentation fixes
Christian Weisgerber cad0b9e8 2020-09-25T19:11:47 remove unused #includes
Tracey Emery 9f6f3943 2020-09-24T22:44:11 restore code removed in b5f0780096f443734de8fc503ca92bf737e2a7b2 and complete code so sub directories work in gotweb This was pointed out by uwerler in IRC. ok stsp
Stefan Sperling abdd569e 2020-09-23T11:41:52 skip remote HEAD refs in gotweb's gw_get_commit(); matches got and tog
Stefan Sperling 3721d310 2020-09-23T11:40:09 repair gotweb build; broken since 48cae60d
Stefan Sperling 3185a744 2020-09-21T12:06:55 install got-read-gotconfig into gotweb's chroot environment
Stefan Sperling 50b0790e 2020-09-11T17:04:57 add per-worktree got.conf(5) file in the .got directory; ok millert
Stefan Sperling 257add31 2020-09-09T23:57:40 add got.conf(5) configuration file ok tracey
Tracey Emery ff21961d 2020-07-29T21:15:13 plug some parse.y leaks
Tracey Emery f71c0a3a 2020-06-23T20:27:11 move gw_conf malloc to parse.y and cleanup another one-line set/check fix rash pointer change in last edit
Tracey Emery c34ec417 2020-06-22T17:09:05 restructure gotweb parse.y to be like the new got parse.y correct a lot of incorrect error handling adjust copyrights
Tracey Emery e9a8bbf7 2020-05-29T13:47:04 fix from Martin Vahlensieck to return error instead of NULL (thank you) ok tracey stsp
Stefan Sperling 010fe6f0 2020-04-25T16:15:18 unexpand the mdocdate keyword in gotweb.conf.5
Tracey Emery 19ff7638 2020-04-14T18:05:51 handle all khttp_urlpart errors
Tracey Emery 6918c609 2020-04-14T17:40:42 remove all asprintf from gw_output_site_link and fix error handling
Tracey Emery e6789209 2020-04-14T17:40:42 remove all asprintf from gw_output_repo_heads
Tracey Emery c6eb96ac 2020-04-14T17:40:42 reduce asprint usage in gw_output_repo_tree
Tracey Emery ebc6542a 2020-04-14T17:40:42 remove all asprintf from gw_blame_cb
Tracey Emery 12003b6a 2020-04-14T17:40:42 remove all asprintf from gw_output_repo_tags
Tracey Emery f7632464 2020-04-14T17:40:42 remove all asprintf from gw_tags
Tracey Emery 9ba68833 2020-04-14T17:40:42 remove all asprintf from gw_briefs
Tracey Emery 038dfa29 2020-04-14T17:40:42 remove all asprintf from gw_commits
Tracey Emery 2796ac23 2020-04-14T17:40:42 remove all asprintf from gw_index
Tracey Emery 32b9f7ed 2020-04-14T17:40:42 use khtml_printf where possible
Tracey Emery f08447b0 2020-04-14T17:40:42 use khttp_printf where possible
Stefan Sperling 255c4055 2020-03-21T23:54:00 mention 'got fetch' in gotweb.8
Tracey Emery 7b1f04a6 2020-03-11T14:59:15 remove 'Next' link from tags on summary page where no tags exist and commit briefs have set gw_trans->next_id if gw_briefs set gw_trans->next_id in gw_summary, it was being carried over to gw_tags, causing the 'Next' link to be displayed.
Stefan Sperling e5ac56af 2020-02-21T08:03:18 ensure that gotweb's libexec helpers inherit build flags set in parent dirs
Tracey Emery 795c10a4 2020-02-20T13:39:19 initialize all missed kcgi_err enums. pointed out by kurt@
Tracey Emery 1a0f5bbd 2020-02-19T16:46:02 whitespace, remove unneeded jump
Tracey Emery ff4bb25f 2020-02-19T16:37:13 add new tags page and ability to navigate all tags
Tracey Emery 75f21c89 2020-02-18T21:42:37 reduce gw_index np_wrapper code to one if statement
Tracey Emery bf4484a3 2020-02-18T21:24:33 work if someone sets got_max_commits_display to 1, and check prev_id
Tracey Emery 55e46400 2020-02-18T20:39:38 add navigation to gw_briefs and gw_commits, fix logic error in original limit checking
Stefan Sperling 246e910a 2020-02-17T22:57:34 fix gotweb build on sparc64; the old linker wants to see -lz after -lkcgi
Stefan Sperling faa61ea3 2020-02-17T22:39:39 make gotweb's install target respect DESTDIR for the devel/got port
Stefan Sperling bb63914a 2020-02-17T21:57:56 make tmp dir location a compile-time setting and change gotweb's tmp dir We are not sure whether a gotweb package can own /var/www/tmp on OpenBSD. Moving gotweb's tmp dir to /var/www/got/tmp sidesteps that issue.
Stefan Sperling fa44fa48 2020-02-17T20:48:35 remove needless file and folder parameters from blame's commit diff links
Stefan Sperling d90bcdd6 2020-02-17T20:42:02 improve error message when query contains an invalid repo name
Stefan Sperling 97a19438 2020-02-17T20:34:40 got_ref_get_name() cannot fail
Stefan Sperling 8f214b62 2020-02-17T20:34:27 don't use got_error_from_errno() in situations where errno was not set
Stefan Sperling c56af3fd 2020-02-17T20:24:04 add missing error check in gw_output_blob_buf()
Tracey Emery bc8c6114 2020-02-17T17:30:29 free missed n_header refs
Tracey Emery 795c5bd7 2020-02-17T17:23:16 check for correct opendir
Tracey Emery e227880d 2020-02-17T17:22:07 improve closedir error handling
Tracey Emery 8182bd34 2020-02-17T17:11:26 close potentially left open directory during an error condition
Tracey Emery 85993e64 2020-02-17T17:09:49 apply unveil earlier in gw_summary, instead of waiting on gw_briefs
Tracey Emery bf93a5c0 2020-02-15T16:35:04 handle commit briefs branch display in gw_briefs instead of gw_summary
Tracey Emery 1b33afc0 2020-02-14T23:48:52 improve gw_blame querystring checking. remove XXX comments, since repo_file is now checked before dumping blob