Commits
- Commit:
e114f3d1c194932aef73612868f0bedc33110110
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: retire max_repos setting
Unlike max_repos_display which limits the number of items per page,
max_repos is an hard-limit on the number of repos gotwebd would
process.
"kill it with fire" tracey@ about the idea
ok stsp
- Commit:
8762929a1a8555f4108c4495bd52ca6dd7f7aefc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add knob for the number of tags and commits in the summary page
ok jamsek
- Commit:
5d6193d0d085d8d8ab3c2f6357b3121bbe728a50
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: remove PAGE handling
The page querystring parameter is long gone and currently unused.
It was replaced mith the "more" buttons in all the views, except
INDEX that uses `index_page'.
ok jamsek
- Commit:
0c6bdfca5ba9050d77d0984aee14f03aabd64bfc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: use nitems() instead of ACTIONS__MAX
I feel safer by using the explicit size of the table rather than
an hypothetical maximum value given by the enum. Mostly because
in the past I edited a table and forgot to remove the corresponding
enum value.
ok stsp@
- Commit:
723721e290eec4393f8cad56a6bb38ca9fd379c7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: use 'more' for the tag listing too
prodded by stsp and jamsek; ok stsp@
- Commit:
4921c182c938f7e109ed3f516cc6249ff7d676bc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: render less tags in the summary page
suggested / ok stsp
- Commit:
ac15152e219bed9c7f41007a39c3cbce83ea9386
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: render READMEs in the tree view
ok tracey@
- Commit:
7f65bb55b8cfe0f964fd7cb845acfbc28621730e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add patch action to serve diffs in plain text
ok tracey@
- Commit:
6e0942f6979a3751280659736d0c8252253c6136
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: inline and remove IMSG_SIZE_CHECK()
I always find confusing if IMSG_SIZE_CHECK() takes pointers or not,
and we had at least a few instances of wrong usages, so inline (with
exact size checks) and remove the macro.
ok stsp@
- Commit:
1632f50aca5cd94ed681c20fc18c2b8ab4857b9c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove the gotwebd repository cache
It only had 4 slots so was never quite useful, and sharing of sock->pack_fds
across cached repositories seems problematic.
with help from + ok op@
- Commit:
9ec8edf7c3ed58660d5ce984a55bbafbd9a23fb9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: define constant instead of using the magic number 3
suggested by stsp@
- Commit:
26678adde25a1fb7fa3e4b78c82a888cc3b767e4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: get rid of proc.[ch]
proc.c really shines when there's a network of different types of
processes, potentially with a various number of instances each,
that needs to exchange messages. Gotwebd instead has a much simpler
design, and using proc.c causes more overhead (/headaches) than it
solves.
So, this attempts to provide the same functionalities but with a
much simpler implementation that fits gotwebd better.
ok stsp@
- Commit:
03e70dd4d41906645718ee5b780d7e948404f292
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: improve gotwebd_assign_querystring()
This prevents the issues that we just hit with forgetting to remove
PREVID: instead of relying on the enum value to yield the size of
a table, use nitems(). Also, quit as soon as the matching key was
found, no need to iterate further.
ok stsp@
- Commit:
296611672d3a242111a160c45afb7ac81a01b326
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: garbage-collect PREVID, removed long time ago
This leftover kept QSELEM__MAX bigger than the querystring_keys[]
table and causes gotweb_assign_querystring to go out of bounds.
Spotted on alpine (thanks to -portable.)
- Commit:
0c64c2f8032e7c3de8b5b3ca5c5bd9047b89b17c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: clean up sockets_create_socket a bit
Instead of hardcoding the flags, keep ai_{family,socktype,protocol}
from the getaddrinfo() call and apply them here.
ok stsp@