Commit Briefs

4c6fbd0391 Thomas Adam

portable: release 0.101 (tags/0.101)


89b33c1eac Thomas Adam

portable: include sha{1,2} portably


8d288f1d05 Thomas Adam

add got_hash_digest{,_string}_length()

These will be very much useful in the near future.


72e411a0ac Thomas Adam

ensure we properly zero got_object_id structs

ok tobeh@


331d5cab10 Thomas Adam

bump version number


b3cfe0be98 Thomas Adam

CHANGES for 0.101


c466367a7c Thomas Adam

use proper type for got_imsg_enumerated_tree

ok stsp@


ac61711588 Thomas Adam

use proper type for got_imsg_enumerated_commit

ok stsp@


eef1d24524 Thomas Adam

s/pack_sha1_ctx/pack_hash_ctx

it's a bit silly to call the context for got_hash with sha1 since it's an API explicitly thought to abstract over the hash algorithm. Also, this is going to cover sha256 pack files soon too.


a5aca095b9 Thomas Adam

dial.c: include sha2.h too

Soon got_lib_hash.h will require sha2.h included, the rest of the tree il ready except dial.c


823afafb42 Thomas Adam

delete some dead code

None of these structures are used anymore, the only thing still used are the GOT_PACK_OBJ_DELTA_OFF_* defines.


fd4b4abf78 Thomas Adam

add a rebase todo item


b6a31527a3 Thomas Adam

use got_object_id_hex instead of got_sha1_digest_to_str

(where possible) The latter assumes that we only have sha1 digests to pretty-print, while the former could, in the future, automatically switch to sha256. At the moment though, this is a no-op.


9772fc4b6b Thomas Adam

change got_imsg_painted_commit to use a object id struct

ok stsp@


a07b40efef Thomas Adam

gotd: use a struct got_object_id instead of an hash buffer

ok stsp@


f605b7655a Thomas Adam

gotd regress: update error message


6e5b538555 Thomas Adam

gotwebd: change how we deal with a non-existant config file

We don't need a config file since we have some defaults, but we also need a way to set them. After the change to move `listen on' to a global rule, we don't add the default socket anymore when there's no config file. Instead, change how we deal with an *existing* config file and leave the rest of parse_function() to handle the case of missing knobs to set up.


00862f7f5b Thomas Adam

gotwebd: plug fd leak in error path



2c833bdbcf Thomas Adam

tog: squish horizontal scroll bug that draws trailing '.'

When calling span_wline() to compute the number of columns to skip on a string with a column length less than or equal to the number of columns we want to skip (i.e., that the user has scrolled right), the call to wcwidth(3) returns -1 for a '\n', which we replace with a '.' character. Trim trailing newlines before calling span_wline(). ok op@


aed1f7694f Thomas Adam

fix diff view J keymap to diff the next commit in the log

When the last visible commit in the log view is selected while in a log/diff horizontal split, and fullscreen is then toggled in the diff view, the user cannot scroll to the next commit with the diff view J keymap due to a bad predicate guarding a clamp to prevent scrolling off-screen that should only be applied when in the horizontally split log view and not when scrolling from the diff view. The fix also reveals an off-by-one that's only applicable in the hsplit case in the subsequent commit loading logic that also breaks J when attempting to scroll beyond the last loaded commit. New regress added to cover these cases. ok op@ (caveated that he's unsure exactly why the OB1 fix works)


3f7ec816e9 Thomas Adam

fix previous; as Paul points out this section talks about the repository path

I didn't take the time to read the surrounding lines, sorry.


1c234fa46a Thomas Adam

fix documentation of the default unix socket path used by gotwebd

spotted by Paul W. Rankin / rnkn via IRC


9832a51c8b Thomas Adam

Remove unnecessary sched_yield(2).

Re-applies commit 6b8a2b8fcd99c4365b1aa9513c0f0149beac2491 which was reverted in commit 82954512f323c8a2d4f89d51be1e6b0f707b6c3a because at the time the change broke the 'search' feature. Quick testing suggests search is now working fine, so let's try again.


fe0e729042 Thomas Adam

portable: macro cleanup

Don't leak past a define on the rest of the line.