Commit Briefs

3b8c462a71 Thomas Adam

gotwebd: swap the tags and branch listing in the index page

discussed / ok stsp@


34875d49d7 Thomas Adam

gotwebd: render READMEs in the tree view

ok tracey@


df7661fbe8 Thomas Adam

gotwebd: use breadcumbs in more actions

Breadcumbs are useful not only in the TREE and BLOB action, but also in COMMITS/BRIEFS and BLOB. prodded by stsp@


184e6e6f6b Thomas Adam

gotwebd: add actions in the diff view too


feaddee622 Thomas Adam

gotwebd: add patch action to serve diffs in plain text

ok tracey@


83d26b5a9e Thomas Adam

gotwebd: make blame view work in text browsers

While here pad line numbers with spaces instead of zeroes to match the blob view.


4f4afeeb57 Thomas Adam

gotwebd: add actions to the blame view

ok tracey@


54f5c7d081 Thomas Adam

gotwebd: add links for actions in the blob page

positive feedback from Kyle Ackerman ok/tweak tracey@


57cfad1ea0 Thomas Adam

gotwebd: introduce .page_header_wrapper to avoid style repetitions

while here clean up some *_header id not used / not needed.


991e335321 Thomas Adam

gotwebd: adjust blob line number for text browsers


6da1aa18fd Thomas Adam

gotwebd: add breadcums to navigate the tree/blob views

ok tracey@


f85c939fb7 Thomas Adam

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@


4cc0851e23 Thomas Adam

gotwebd: render all the datetimes in a time tag

fixes an unused variable that should have been dropped in previous commit too. ok stsp@


10fa70e266 Thomas Adam

gotwebd: inline the only use of TM_RFC822


cbe7b7d714 Thomas Adam

gotwebd: typo; fix closing of dd tag


882ee74dcf Thomas Adam

gotwebd: don't loose track of the file in commit listing

When browsing the history of a file, the more button should generate a link containing the file= parameter, otherwise we switch back to the 'global' history. Spotted by stsp@


fdd79f2f3f Thomas Adam

gotweb: style improvements

First round of polishing, css simplification and responsiveness for gotwebd. The new HTML is now actually usable on text-only browsers and the fonts are bigger on smaller screens; close to no changes for "normal" desktop usage. A few regressions were spotted by Lucas on IRC, thanks! No objections from stsp@


b2251e6e28 Thomas Adam

bubble up got_repo_commits()

now that got_get_repo_commits() doesn't look at `action' we can stop fetching the commits during the rendering and bubble up the call. This yields better error messages and better replies codes on failure.



aa2aecab69 Thomas Adam

gotwebd: lower log priority of unexpected disconnections

no need to be so loud when a client disconnects earlier than expected, log it only in verbose mode. Don't log GOT_ERR_CANCELLED too since that is only used to communicate the callers that we need to stop. ok stsp@


164b5ddc66 Thomas Adam

gotwebd: reply with non-200 HTTP status code on error

ok tracey@


161663e7eb Thomas Adam

gotwebd: provide gotweb_render_page() entrypoint for all pages

simplify gotweb_process_request more, handling all the pages inside the big switch. There's only one entrypoint for rendering the templates gotweb_render_page() that takes the page' content as argument. The only real difference is that gotweb_render_index() now skips directory entries which fails to handle. ok tracey@


4fccd2fe0f Thomas Adam

portable: configure: split out dependencies

Rather than assume all dependencies are required for all programs, split them out. This will make packaging easier, as well as splitting the code to use subprojects. Note that due to the use of config.h semantics, in most cases the got_compat.h header file is now at the top of the .c file it is included in, so that it can handle the system header inclusion properly.


98670ba726 Thomas Adam

portable: rework SHA detection

Simply the SHA detection by not predicating on libcrypto, but instead checking individual header files.


588a8092bc Thomas Adam

include sha2.h too where sha1.h is included

In preparation for wide sha256 support; stsp@ agrees. Change done mechanically with find . -iname \*.[cy] -exec sam {} + X ,x/<sha1\.h>/i/\n#include <sha2.h>