Commit Briefs

Stefan Sperling

implement 'got diff -c' for diffing commits with optional filtering by path

Need for filtering by path sugggested by kn@ ok naddy@


Stefan Sperling

show parent commit IDs of merge commits in the tog diff view

ok tracey


Stefan Sperling

tog: use sched_yield(2) instead of pthread_yield(3) for portability

pthread_yield(3) is an optional POSIX 2001 extension while sched_yield(2) is part of POSIX 2008. On OpenBSD they are actually equivalent, albeit not documented as such. Using sched_yield(2) helps the -portable version. Patch by Quentin Rameau



Christian Weisgerber

tog: when jumping to the bottom of the log view, go from the tail backwards

ok jasper


Christian Weisgerber

tog: jump directly to first log item instead of traversing the list

ok tracey


Christian Weisgerber

tog: add support for navigating to first/last line of tree and ref views

ok stsp


Christian Weisgerber

tog: add support for navigating to first/last line of blame view

ok tracey stsp


Stefan Sperling

make tog block other keys except Backspace after End/G is pressed

This should avoid unexpected behaviour resulting from unrelated key presses messing with the log view's state variables. Pointed out by tracey, and also discussed with jasper. ok tracey



Stefan Sperling

make tog ignore Ctrl+L and B while loading all commits

Otherwise tog gets into a funky non-recoverable state if these keys are pressed instead of Backspace while commits are loading. bug found by + ok tracey


Stefan Sperling

remove the 'ctrl+u' shortcut in favour of just 'g' as alias for 'Home'

Our use of ctrl+u was not consistent with vi(1) after all. Discussed with naddy, tb, and jasper on gameoftrees@



Jasper Lievisse Adriaanse

tog: add support for navigating to first/last item of log and diff views

The keybindings that we settled on are Home, Ctrl-u and g to go to the first item and End, G to go to the last. This resembles those commonly found elsewhere, eg vi/less. discussed with and ok stsp


Stefan Sperling

use gmtime_r(3) instead of localtime_r(3) to display time in UTC as intended

Problem noticed by naddy due to failing regress tests at midnight, and then analyzed with additional help from millert. ok naddy