Commit Briefs

d40addaae7 Thomas Adam

gotwebd: show commit id prefix on briefs page

tweak + ok op@, "seems good to me" (webpage review) stsp@


07aff80565 Thomas Adam

tog: show shortened "id1 -> id2" as path in diffstat when diffing blobs

This matches the output of "got diff -d". ok jamsek


c75e74214f Thomas Adam

tog: expand diffstat to all diff views

Suggested by naddy: display diffstat in diff views of arbitrary commits. For the sake of consistency, show it in tree and blob diffs now too. Adjust and grow regress to cover the change. ok stsp@


282924c1e6 Thomas Adam

regress for tog diff view 'p' keymap; ok stsp@


b06f7fc373 Thomas Adam

tog diff 'p' keymap: show id prefix in diff filename

This helps identify diffs when several have been written. Suggested by stsp on IRC. ok stsp@



3aa55f1085 Thomas Adam

tog: add diff view 'p' keymap to write the diff to file

Write the current diff view to a temporary patch file in /tmp and report the pathname to the status line. discussed with naddy input and ok stsp@



25de582cc8 Thomas Adam

portable: set next version


cb6c7c3e61 Thomas Adam

portable: release 0.102 (tags/0.102)


36ce9a3b89 Thomas Adam

zap redundant free

This pointer is owned by the caller and is freed in error paths via close_diff_view() ok stsp@


95767463b6 Thomas Adam

bump version number


ec662aa679 Thomas Adam

CHANGES for 0.102



fc231b0cbd Thomas Adam

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@




0d486432bb Thomas Adam

make info commands show the work tree format version, too

ok op@


088ea0a1b3 Thomas Adam

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@


021918ff77 Thomas Adam

cmd_info: use got_error_path instead of _fmt

No functional change intended.


37ee718b31 Thomas Adam

style/fmt


bdf3f05ed0 Thomas Adam

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@


57cafc2c8d Thomas Adam

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@


abda67d236 Thomas Adam

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