Commit Briefs

Christian Weisgerber

trim redundant and unused parameters from draw_commits() and draw_commit()

ok stsp


Christian Weisgerber

trim redundant and unused parameters from run_blame()

ok stsp


Christian Weisgerber

trim redundant parameters from log_scroll_* and trigger_log_thread functions

Also rename scroll_{up,down} to log_scroll_{up,down}; requested by stsp. ok stsp


Christian Weisgerber

trim redundant parameters from {ref,tree}_scroll_{up,down} functions

Pass only the view and scroll amount to these functions; remove unused parameters and those that are contained in the view state. ok stsp



Stefan Sperling

fix page-down/page-up scrolling in the tog tree view

problem reported by, fixed with lots of help from, and ok naddy



Christian Weisgerber

fix entry selection when moving to the parent in tog's tree view

The tree view attempts to keep the scroll position of an already visited parent directory intact. If we start out by viewing a subtree and then move up, the scroll position of the parent isn't actually available since the parent tree was never nagivated by the user. In this case tree_view_walk_path() has to fill in some values. The only parent entry we know about in this case is the one which was traversed to reach the child. The best we can do is to lock the parent's scroll position such that the traversed child entry appears at the top of the list if moving up to the parent's view. If we then navigate down again and return, the parent's scroll position will start to be retained and restored properly. Analysis and draft patch by stsp, initial report and simpler fix by yours truly. ok stsp





Stefan Sperling

fix calls to ref_usage(); found by naddy


Stefan Sperling

initial 'tog ref' implementation

ok naddy tracey


Stefan Sperling

store reflists in view state where required and get rid of reflist pointers

ok tracey naddy


Stefan Sperling

make 'tog diff' accept reference and tag arguments; add -w and -C options

ok naddy tracey





Stefan Sperling

remove now pointless 'check_disk' parameter of got_repo_map_path()

suggested by naddy


Stefan Sperling

make tog avoid got_repo_map_path() if a work tree is available

ok naddy


Christian Weisgerber

Call pthread_cond_destroy(cond) exactly once when closing a view.

This moves the pthread_cond_destroy(need_commits) from stop_log_thread(), which can be called twice, to close_log_view(), which is called once. It also destroys the commit_loaded condition variable, which is created in open_log_view() but was never destroyed. ok stsp


Stefan Sperling

highlight matched search terms in tog diff and tog blame views

ok naddy@



Stefan Sperling

plug two memory leaks in tog's draw_file()


Stefan Sperling

merge new diff implementation from the git.gameoftrees.org diff.git repository

This new diff implementation was started by Neels Hofmeyr during the u2k20 hackathon and now replaces diffreg.c code lifted from the OpenBSD base system. The integration of this code into Got was done by me. Got now uses the patience diff algorithm by default. The diff.git repository will remain the primary repository for the diff code, which already compiles and runs on other operating systems such as Linux. Any fixes and improvements for files inherited from the diff.git repository should be written against that repository and synced to got.git afterwards.