Commit Briefs

466785b926 Josh Rickmar

add histedit -f flag for folding shortcut

"please push it" stsp


3f670bfb38 Stefan Sperling

fix display of lines that end in "\r\n" in tog(1)

Problem found and reported by jrick ok naddy


437adc9d5b Yang Zhong

add fd field to got_worktree, modify got_fileindex_entry_update to use fds

These changes are intended to make got more compatible with FreeBSD's Capsicum. ok stsp




9cd7cbd127 Stefan Sperling

deep-copy reference names in the log and tree views to prevent use-after-free

ok naddy


bf30f15468 Christian Weisgerber

miscellaneous minor style issues





4e0d287073 Christian Weisgerber

pass the thread_args struct to queue_commits() and trim the parameter list

ok stsp


1e1ff4ed14 Stefan Sperling

move the tree view's selection cursor up if the terminal shrinks too much

ok naddy


8b5b8d0ca2 Stefan Sperling

move the ref view's selection cursor up if the terminal shrinks too much

bug found by naddy ok naddy


cdfcfb036c Stefan Sperling

send resize events to tog child views as well as parent views

problem found by naddy ok naddy


213556435a Stefan Sperling

fix crashes when the 'tog log' view reloads displayed data

This reimplements log view reloading (Ctrl-L), logging of a parent path (Backspace), and the toggle to show commits on branches (B). The idea is to reuse the existing log view and change its state, instead of allocating a new view with a new state and replacing the existing view. Fixes a segfault that occurs when a parent path is logged with Backspace: tog tree -r got.git -c 0.44 pick tog/tog.c 'l' Backspace -> tog will segfault The first change in this patch is a partial fix. The log thread should always check the 'quit' flag as soon as it wakes from sleep. Otherwise it could try to load more commits after waking up and before checking the 'quit' flag. It will then attempt to load commits with a NULL commit graph pointer. This partial fix by itself is not sufficient to fix the crash, since we'll now see a bus error in the main thread, instead of a NULL deref in the log thread. The remainder of the patch fixes this bus error. ok naddy