Commits
- Commit:
6d451452dcbbd88afee5dc0a4e43054a4b19b7b7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.82
- Commit:
f3dfebfc3bdd798342b4e7bde241e613af75efd8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make read errors in gotsh serve_write() fatal, as was done for serve_read()
- Commit:
f7eb3370fd07878c7c3a6f1470243c791f38f8a9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make gotd store own PID after daemon(3), and avoid calling daemon(3) needlessly
ok op, jamsek
- Commit:
f357f78c8f257cd1c3f99730dfc9d2f9aa71f726
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
got: don't leak pathlist in commit and revert commands
ok stsp@
- Commit:
dc2c33447cc70129447c35401081e46c06e66d38
- From:
- Mark Jamsek <mark@jamsek.dev>
- 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:
3f6c66148db9beccfaaa0138fcff4b84cb99ec5a
- From:
- Mark Jamsek <mark@jamsek.dev>
- 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:
388b24d60f37266ab8fbe53238f25ec75935b324
- From:
- Mark Jamsek <mark@jamsek.dev>
- 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:
16e4df9de6d20690d5c15ff2fa3066afca1143d9
- From:
- Omar Polo <op@omarpolo.com>
- 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:
8edf8796238623ad54b0a73abf83cf2c94a1fb83
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotsh: avoid a temporary buffer for the socket path
ok stsp
- Commit:
87724ba023ff5063a868e68ac90b991ae1cf7ec8
- From:
- Omar Polo <op@omarpolo.com>
- 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:
9aeaf23a7e94501bdcb20d18427620cf70b87995
- From:
- Omar Polo <op@omarpolo.com>
- 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:
b5225f29d85b32692bdfed88b3e93babf8269494
- From:
- Omar Polo <op@omarpolo.com>
- 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:
c808f450905feb2890b615ba1aeedb565e3fdd57
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt; fold long line
- Commit:
65c2e81071bab7f9018a062b4d590e67e1a6f021
- From:
- Omar Polo <op@omarpolo.com>
- 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:
aa31714b5b44e1b79b15792902586d60da22e47a
- From:
- Omar Polo <op@omarpolo.com>
- 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:
cb93ab40659f5d64c7a4f56919d203efa2d8a565
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: turn gotweb_get_time_str into gotweb_render_age
ok jamsek
- Commit:
6cdf29f9353bcea609dcbab90131634430ac5a18
- From:
- Omar Polo <op@omarpolo.com>
- 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:
96afb0d62311dd459395b8eba2216094c18dfb67
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make read errors in gotsh serve_read() fatal and adjust tests accordingly
ok jamsek
- Commit:
695bc1ecccf24ece2b0b8a03a5f0d26ad5116a0e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
return GOT_ERR_EOF from pkt.c if a read attempt indicates EOF
ok jamsek
- Commit:
f91b5c433d4c2fb2e80053859b6f15c9239b3231
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
only "forward" implicit flush packets in serve_read() if they are expected
ok jamsek
- Commit:
3448a19afa20edfa1069b2d793abcda5a9006565
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make gotd session process accept just one flush packet at a time
ok jamsek
- Commit:
7713cc5e4f5544e81909670d592e89526ed86c9b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort ENVIRONMENT entries in got.1 and tog.1
ok jamsek
- Commit:
8fcd5cccdccdf61486b86753d28252df3bd5444a
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.8: sort -d after -D
patch by Josiah Frentsos, thanks!
- Commit:
b3bed212b3579369f1b3161683ca3a9a5c3e0118
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotd.8, gotwebd.8: new sentence, new line
diff from Josiah Frentsos, thanks!
- Commit:
eca2b1d0d697cef723df2d1394b84b636c02ced0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing bounds-check in gitproto ref-line tokenizer