Commits
- Commit:
0c3124f53a5c7f280d51f7e0c02fafbdca778d83
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: release 0.82
- Commit:
3c075bf72751649efcf67cd74fdc8f6f17b25c1a
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd.8: fix Xr typo http.conf -> httpd.conf
- Commit:
370cf400336871636b72a1e09da3df3d31c79b8c
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got merge: call the right usage_*() function
Diff from Mikhail, thanks!
- Commit:
33da44fec326d6e39487bb31e947ad1256bd4b5c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
bump version number
- Commit:
b4dee235187dcd69ce427e645021501012c61e00
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
CHANGES for 0.82
- Commit:
8b56c8f497bb215c0e3504455ac22a3f25646a5b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make read errors in gotsh serve_write() fatal, as was done for serve_read()
- Commit:
1f1613cf295163e120025e06b138cda25d5e52f1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make gotd store own PID after daemon(3), and avoid calling daemon(3) needlessly
ok op, jamsek
- Commit:
70f07862e9430765dc7788416a3718ddf6e14520
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got: don't leak pathlist in commit and revert commands
ok stsp@
- Commit:
6ec3d39ca03fd5b2f4bf0d896a3b9171644390cd
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
don't print empty line when exiting tog
Reported and tested by dv: rather than print a new line to avoid clobbering
the shell prompt when exiting tog with the alternate screen buffer disabled^,
adopt naddy's vi(1) solution by looping through visible views to delete the
topmost line, which inserts an empty line at the bottom so we don't need to
print an empty line to ensure a clean prompt.
^: xterm -xrm 'XTerm*titeInhibit: 1' or run tog in the console
ok naddy@
- Commit:
f2d06bef0f9de303eb6de9523de85da21645850f
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: display action report on user toggleable event
If the diff algorithm, ignore whitespace-only changes, force ASCII text diff,
show committer/author, or reference sort order keymaps are toggled, report
action to the bottom left of screen. Based on initial patch by Mikhail.
ok + tweaks op@
- Commit:
b185e033101e0834eb18f8b75f5c7a243f7c2208
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: fix typo that makes condition always false
In view_loop(), we initialise at a refresh rate of one tenth per second before
dropping to one second updates; the reduction was never hit due to the typo.
Reviewed as part of the following diff adding action reports to user events.
ok op@
- Commit:
6e58d3c9404cfe3f05729f28b8478e6b8c2155d2
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotsh: move apply_unveil right after the first pledge
and while here drop the second pledge() call since unveil is already
locked by apply_unveil.
ok stsp
- Commit:
c8fcdde846ed3f6e2694cb0a3f7e6508b32098bf
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotsh: avoid a temporary buffer for the socket path
ok stsp
- Commit:
a72fb3943aac447913520efc133b9b010beb8001
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add a test for ssh connections without a repo path argument
would have caught the fixed failure in disposing early-closed
connections in gotd.
ok jamsek, stsp
- Commit:
214d733a8e368034e6afa52b6c9ac25e071fd0c7
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotsh: validate with parse_command before connecting
Export parse_command (now got_serve_parse_command) from lib/serve.c and
use it to validate the command line in gotsh instead of just checking
that the -c argument starts with 'git-receive-pack' or 'git-upload-pack'.
Invalid usage now always fails before opening the socket, while before
it wasn't always the case. This also means that invalid usage doesn't
count towards the limits.
ok jamsek, stsp
- Commit:
f5f71a04830c68cddf72cca7f77c8dec97451abb
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd: disconnect on client EOF too
Otherwise gotd keeps the (client-closed) sockets around and may prevent
new connections from being established since they still count for the
limits.
ok jamsek, stsp
- Commit:
8efb3dc0bc74c64b086dbee78912ab594bae37bd
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fmt; fold long line
- Commit:
42814e017658a8b924881e7675afac062eae984b
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: avoid full history traversal in briefs/commits
This purposefully breaks the 'previous' button in the commits and briefs
page. It's hard to find the parent of a commit since they can only be
iterated forward. The way the previous button was generated was to walk
the history from the HEAD down to the specified commit. This is costly
but more importantly leads to issue when dealing with paths that were
deleted from the repository.
Discussed with stsp and tracey, ok jamsek.
- Commit:
b4d10c2be91fc52b9f65798b6a4f55afbdd9f3eb
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: don't got_ref_list per-commit in got_get_repo_commits
It's wasteful since `refs' is already populated before the loop, and
released after. It also leaks the content of `refs' the first time the
loop is entered.
ok jamsek
- Commit:
53bf32b82a90b42a6feff46808c401af5d59f2c6
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: turn gotweb_get_time_str into gotweb_render_age
ok jamsek
- Commit:
502374853d19661deb162553e55b6952a9f8d8de
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: refactor gotweb_render_content_type/_file
Rework them so that they allow to set the Status header (the HTTP status
code; only way since we're behind FastCGI) and optionally a Location.
Since they're now unused outside of gotweb.c, mark them as static. They
also used to always return NULL so the error is pointless; return the -1
on failure though.
While here, rename to gotweb_reply and gotweb_reply_file.
ok jamsek
- Commit:
113392cfbd4d2583badd52487063cd5f84f55518
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make read errors in gotsh serve_read() fatal and adjust tests accordingly
ok jamsek
- Commit:
23ac500059fe541c262531df0c2877bd1f547887
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
return GOT_ERR_EOF from pkt.c if a read attempt indicates EOF
ok jamsek
- Commit:
94a71055f46811ae239b1b26205482f35fbf85e9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
only "forward" implicit flush packets in serve_read() if they are expected
ok jamsek
- Commit:
98c7fd82fde99a5be248c7268cd52d18bb9b9c4e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make gotd session process accept just one flush packet at a time
ok jamsek