Commits
- Commit:
a2c12f7b814f145ba507667dbf640253c87c3460
- From:
- Omar Polo <op@omarpolo.com>
- Date:
delete trailing whitespaces
- Commit:
c300209f7d817ab1023a66ece541a77043d25c95
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add another pre-commit check idea to the gotd TODO list
- Commit:
0a618912c7bba9bfab2be331204824e4bba303c3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid traversing enumerated commits more than once in got-read-pack
Keep track of parent commits that will be processed as part
of looping over the commit queue provided by the main process,
and do not add these commits to the queue again.
Fixes pointless traversal of commits on the queue which will
simply be skipped. The end result is the same either way.
ok tracey
- Commit:
e1380e2807453e7f6feedf4b930146b511620427
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix missing commits in pack files created with packed object enumeration
got-read-pack forgot to send a tree-enumeration-done message to the
main process if the tree of a given commit had already been traversed.
The main process would then not add the corresponding commit to the
pack file, even though it should be added.
Found while using 'got send' towards gotd in order to populate an
empty repository on the server with non-trivial history, where some
commits always ended up missing due to this bug.
ok tracey
- Commit:
a003d5184726e721ca5313a722fc1a22d602e8b8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cmd_tag: avoid unnecessary strdup of signer_id
ok jrick
- Commit:
87332a0e6e71182f1fb148d7f42e78105713285b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.8: fix Xr typo http.conf -> httpd.conf
- Commit:
02a86be7273724a6513836014ad90f2316ece5df
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
got merge: call the right usage_*() function
Diff from Mikhail, thanks!
- Commit:
b8aacf8e5c6c562d8245e7424ccceb7bf666b4ca
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- 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