Commit Briefs

350a84376b Omar Polo

CHANGES for 0.102 (tags/0.102)



ce725b8f7b Omar Polo

got patch: lock the worktree

Since we may update the fileindex, the worktree must be preemptively locked exclusively. It's an old thing, been there since the start. ok stsp@




73119b9106 Stefan Sperling

make info commands show the work tree format version, too

ok op@


088a1c3b81 Omar Polo

got/cvg info: print work tree version

This exends got_worktree_path_info() to resemble the "transaction"-like interface we have for rebase, patch etc. There's a prepare() routine that returns the fileindex, and locks the worktree, and a complete() function to free the fileinedx and release the lock. This way, we can open only once the fileindex in cmd_info() and have the chance to ask for its version. ok stsp@


4775b06953 Omar Polo

cmd_info: use got_error_path instead of _fmt

No functional change intended.


6f70de963a Omar Polo

style/fmt


6934d8276a Omar Polo

rename idlen to digest_{,string_}len

In my early sha256 work I've used `idlen' to parametrize the digest length, but that's ambiguous since it could refer either to the digest length (in binary form) or the digest _string_ length (hexadecimal). So, change the few offenders to either digest_len or digest_string_len, which is a "naming scheme" I've already used in the rest of the tree. ok stsp@


05f7204b7c Omar Polo

skip over lonely packidx when searching for objects

This changes the search_packidx, match_packed_object and get_packfile_info routines to skip over lonely packidx. These seems to be generated occasionally by 'git fetch' over HTTP/S. Instead of dealing with this situation in gotwebd, which is fragile, attempt to do it at the lib/ level. `gotadmin cleanup' will still complain about these lonely packidx and `gotadmin cleanup -p' is still required. discussed with and ok stsp@


5d0baf4e3f Omar Polo

fix signedness issue in got_pack_index() after sha256 work

Later we try to see to -digest_len from the end of the file, and this on 32bit arches has some issues: size_t is 32bit and being unsigned becomes a huge number that then is casted to a off_t (signed, and larger) and makes us seek very, very far from the end of file. Then, read(2) returns zero because we're at end of file and trying to send packs to gotd fails with "I/O error". This was introduced when SHA1_DIGEST_LENGTH was converted to digest_len. ok jamsek, stsp


faf51db5e8 Christian Weisgerber

include minimum length when trimming object IDs in regress


62baee9a86 Omar Polo

got_packidx_open: got_error_fmt -> got_error_path

Results in the very same error but takes less characters to build. No functional change intended.


febee0fd36 Omar Polo

revert got_object_qid_alloc_partial calloc change

This reverts parts of be12ea2c34 and 4239df3cca. The fileindex and worktree code has been fixed and this workaround is no longer needed. ok stsp@


6c7991e2c2 Omar Polo

regress/tog: enable and run it in sha256 mode too

with a fix from naddy, ok jamsek stsp@


3271ec93b5 Mark Jamsek

tog: regress test for new log view 'm'ark commit keymap

ok stsp@


e2e5e9c1ca Mark Jamsek

use local temporary convenience pointer missed in 28c5a8280b

ok stsp@



e48e246465 Stefan Sperling

run authors list through sort(1)


3bbd51dab8 Stefan Sperling

mention gotd in authors section



28c5a8280b Mark Jamsek

add tog log 'm' keymap to mark arbitrary commits to diff

Enable "marking" an arbitrary commit in the log view to open a diff view showing the changes between it and the next commit selected with 'return'. Entering 'm' on an already marked commit unmarks it. input from and ok stsp@


590eefe913 Stefan Sperling

only warn about missing repositories in gotd startup as was intended

This was broken in commit 4b3827cd43394b89d2af822dcd1d9a9179c1ee10 "make gitwrapper ignore 'permission denied' for repository paths"


ef3a5d525a Stefan Sperling

make gotd(8) reject sha256 repositories at startup for now

ok op@