Commit Briefs

8fdc79fef0 Christian Weisgerber

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

ok stsp


a538836306 Christian Weisgerber

trim redundant and unused parameters from run_blame()

ok stsp


ffe3850662 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


694d3271e2 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


34ba691717 Stefan Sperling

fix page-up/down in 'tog ref' view; ok naddy


fa86c4bf0e 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



9a1d514689 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





a1b774028e Stefan Sperling

fix calls to ref_usage(); found by naddy


6458efa5c1 Stefan Sperling

initial 'tog ref' implementation

ok naddy tracey


78756c87d9 Stefan Sperling

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

ok tracey naddy


3dbaef4273 Stefan Sperling

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

ok naddy tracey





8fa913ec61 Stefan Sperling

remove now pointless 'check_disk' parameter of got_repo_map_path()

suggested by naddy


bfd61697d2 Stefan Sperling

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

ok naddy


276b94a1f9 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


41605754d0 Stefan Sperling

highlight matched search terms in tog diff and tog blame views

ok naddy@


135a2da0c5 Stefan Sperling

show current/total line numbers in tog's diff view header


e54cc94af2 Stefan Sperling

plug two memory leaks in tog's draw_file()


fe621944e8 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.