Commit Briefs


1af5eddf22 Thomas Adam

fix handling of pack_fds used by tog's log thread


7cd528337b Thomas Adam

move got_opentempfd out of got_repo_open. ok stsp@

thanks for all the help massaging this diff


23427b1425 Thomas Adam

re-add u/d keybindings as aliases for Ctrl-u/d, matching more(1) and less(1)

patch by Mikhail


70f17a53cc Thomas Adam

in tog, rework Ctrl+u/d to scroll by half a page, and drop d/u again

This matches actual behaviour of less(1) for Ctrl+u/d, and leaves d/u free for potential future use. Suggested by naddy. Patch by Mark Jamsek



a0f32f336e Thomas Adam

move creation of tempfiles outside of lib/diff.c

ok tracey


89fe1c42b3 Thomas Adam

portable: fix-up sha1.h include

-portable doesn't need this directly.


296152d1ca Thomas Adam

tog: override SIGTERM and SIGINT handlers to avoid ncurses cleanup() handler

ok thomas


9a267125aa Thomas Adam

inline struct got_object_id in struct got_object_qid

Saves us from doing a malloc/free call for every item on the list. ok op@


82f9484cc5 Thomas Adam

portable: include sha1.h portably

Don't directly include sha1.h as this isn't always in the same location across systems.


c17f3d0c7b Thomas Adam

inline struct got_object_id in struct got_object_qid

Saves us from doing a malloc/free call for every item on the list. ok op@


b0e25f642d Thomas Adam

portable: freebsd: portably include sha1

The SHA implementation is found portably across systems, so don't include sha1.h directly.


ec242592d3 Thomas Adam

inline struct got_object_id in struct got_object_qid

Saves us from doing a malloc/free call for every item on the list. ok op@


10f173fee1 Thomas Adam

pass an already open commit object to the blame callback

ok op@


945f922947 Thomas Adam

stop relying on commit cache for good performance of got_object_id_by_path()

Instead of internally opening and closing the same commit object over and over again, require callers to pass an open commit object in. Avoids an inherent dependency on the commit object cache for reasonable performance. ok op@


d24ddaa6a9 Thomas Adam

portable: include support for MacOS

This adds support for MacOS (Monteray onward, although should work on older MacOSes). The BSD wrapper for poll/ppoll has been lifted from the work the folks over at OpenSSH have done -- thanks!


641a8ee636 Thomas Adam

const-ify command and option tables

ok stsp


8f666e6727 Thomas Adam

tweak error reporting due to invalid numbers

Use the same idiom as in the strtonum(3) manpage which produces a more readable error message. OK kn, stsp


2183bbf63d Thomas Adam

show rebase and histedit backups in tog ref view

ok naddy


aa61903a98 Thomas Adam

tog: clear search highlighting when reloading view

Clear the search highlighting when replacing the content of a diff view ('<', '>', '[', ']', 'a', 'w') or a blame view ('b', 'p', 'B'). Previously the position would remain highlighted even if the text there had changed. ok stsp@ or a blame view


4b3f9dac33 Thomas Adam

make tog searches start from the current position in all views

ok naddy@


de0d3ad4a4 Thomas Adam

let new 'tog log' searches start out from the currently selected commit

ok naddy tracey


98182bd051 Thomas Adam

switch tog ref view's sort order command key to "o" instead of "s"

The letter "o" does not overlap with existing options of 'got ref' and is also used by mutt(1) for this purpose.