Commit Briefs

955f07e2ff Thomas Adam

portable: gotwebd: macos accept4 -> accept (ta/gotwebd)

accept4() doesn't exist on MacOS, so will likely need to set fcntl() on the FD.


b7ec583187 Thomas Adam

portable: gotwebd: handle setres{g,u}id

This isn't defined on all systems.


62da1d17b6 Thomas Adam

portable: macos: handle SOCK_CLOEXEC

MacOS doesn't have SOCK_CLOEXEC, so don't include it in the set of flags for socket(). We probably shouldn't do this, as another approach is to set fcntl(fd, O_CLOEXEC) instead.


117843e476 Thomas Adam

portable: ci: macos: add libressl


8baf059b5b Thomas Adam

portable: freebsd: EAI_NODATA

On FreeBSD (and possibly others), EAI_NODATA was removed, in favour of using EAI_NONAME.


685f459352 Thomas Adam

portable: add setproctitle

This is needed for gotwebd.


3413106e67 Thomas Adam

portable: define SOCK_NONBLOCK

This isn't always defined across all systems.


c0597f5be8 Thomas Adam

BSD: wrap packed in __attribute__


a6b4f518e4 Thomas Adam

portable: ci: disable gcc container

The gcc container is useful to quickly run compilation checks within it. However, this is currently now behind where it used to be, and as such, certain packages cannot be installed. We already compile got against Ubuntu/Alpine. That should be good enough.


f349577fa1 Thomas Adam

portable: ci: add libtls/libressl

Needed for TLS in gotwebd.


0ada29ea38 Thomas Adam

portable: provide WAIT_ANY implementation

On POSIX systems, WAIT_ANY needs an implementation.


293e816c7e Thomas Adam

portable: mention libevent dependency

This is now required to run gotwebd.


d7cad54ee7 Thomas Adam

portable: gotwebd: first stab at compilation

This is not yet "clean", but does compile. A few things to consider: * See comments beginning with "TA:"


56324ebe81 Thomas Adam

import gotwebd

thread fcgi response to client for rendering in browser as data is returned fix potential problem with a stuck loop if the client is hammering the server with random clicks and stop/restarts render our index! WOOHOO! small var refactoring. fcgi.c to handle all clean-up, various error clean-up remove output used to trace down got bug temporarily stop overloading a socket, but a better solution needs to be found return on fcgi_gen_response, so we can track if a client is writable or not this stops page creation when the client is unavailable remove old comments enable profile building, although, i don't think this works thoroughly in a priv/proc daemon catch more errors correctly count repos remove temp logger we don't need to start our responder thread so early. move it to fcgi.c and start when we start processing html kill the unneeded thread, stop queueing responses, and just write to clients immediately clean up some memory leaks and dead stores rework querystring so an error can be displayed instead of showing the index on querystring error get framework in place for the rest of the content add server struct to response struct bo last commit get back a usable gotweb. not sure what i was thinking yesterday properly move our structs around this time remember index page for sitelink, fix leak unused var is annoying, so stop it for now. don't forget to change this! style briefs nearly completed. finish briefs output add briefs to summary cleanup some html properly retrieve next and previous commit ids for list navigation follow naddy's stailq macro change we will never have a previous link on the summary page goto correct label, so we get a previous link on the last page of briefs don't wrap short line simplify got_get_repo_commits code start rendering a diff start rendering a diff this was by accident finish diff output functions cleanup prepare for fd request that was a stupid idea, just flush the priv_fd bo that too. that won't work eith with append in mkstemp that isn't going to work actually zero out the priv_fd missed seek to beginning of file was overwriting first line of diff fsync our fd as well add link to repo path by sitelink and add back verbose fcgi debugging that was removed add modest write heuristics to fcgi_send_response fix dead assignments and XXX comment where a leak is happening that I can't find right now there was no leak. stsp is brilliant and knew it was the cache growing prevent double-free, render prettier err output if we can remove unused variables correctly fix double-free fix gotwebd to build with main's changes after rebase fix double-free don't error on index if pack files missing and fixup some error handling render commits finish up tag briefs and start the tag page finish up tag page unbreak TAGS and SUMMARY actions grab the correct tag from the queue unbreak TAGS and SUMMARY actions again update some error handling clean up unneeded code and start tree output render tree render branches remove tags from summary if there aren't any fix tree div structure and start blob render render blob render blame fix tree href in briefs clean up some css add headref to querystrings load correct commit for tree and diff fixup some error output update some copyright dates add full SNI support rm debug line found by Lucas6023, notified via IRC. thanks!! fix tree fix crash when querystring is manipulated to not have a commit id in certain instances. also break a stuck while loop on client error. fix for new got_object_id_by_path arguments rebase and fix prep for multiple fds per socket, instead of just one fix overlooked shift/reduce conflicts backout priv_fds as a list. after discussion with stsp, an array and length are the better direction prepare array of fds to pass into got functions make a new set of pack fds, which will be passed to got_repo_open work with new pack_fds in got_repo_open give output when no tags exist escape html in blame output change files listed in tree view to show blob, file commits, and blame, instead of blob, blob, blame. idea from mp4 on irc. this is way more handy. stop populating the queue from the headref and figure out previous commit id while iterating. this should reduce some overhead. actually purge our sockets instead of not using the function start work with new blob rm volatile use new diff change func names no more temp files increase blame number line width set content-type to text/plain so firefox won't download files rm test infra for now account for -Wwrite-strings fix for sigs and algorithm choice clean up some leaks and other mistakes


d1ea27e3ce Thomas Adam

portable: set next version


ed7004e63c Thomas Adam

Release 0.74 (tags/0.74)



a42c5a8d17 Thomas Adam

bump version number


485123bd61 Thomas Adam

CHANGES for 0.74


fe731b51aa Thomas Adam

tog: fix sticky "loading..." status in log view hsplit

Don't request commits if the log has completed loading all commits. While here, ensure the correct parent/child view requests commits when resizing a hsplit. Reported by stsp: $ tog S # switch into hsplit mode G # move to bottom and load all commits Enter # open a diff showing the initial import commit - # shrink the diff view by one line; alternatively use + to grow it *log status stuck with "loading..." in the header* ok stsp@


3cb9337907 Thomas Adam

fix pipe usage for linux

This uses the correct read and write ends of the fds returned by pipe(2) on linux. It also moves away from creating FILE* streams with fdopen and reading the stream with buf_load (which performs a fstat, and breaks due to a zero length file size on linux) by instead reading from the fd itself. Reported by abieber@, with assistance from stsp@ ok stsp@


f3a5718ad6 Thomas Adam

use Cm mdoc markup for histedit script commands



8ea72c47a2 Thomas Adam

histedit: make sure mesg is only used after pick or edit

It doesn't really make sense to use mesg after a fold or drop, or after another mesg. it currently "works" as intended, but the behaviour is confusing and not useful, better abort the operation as it's probably not what the user intended. Suggested by and ok stsp@