Commits


fix misplaced tog search prompt in split-screen views


make tmp dir location a compile-time setting and change gotweb's tmp dir We are not sure whether a gotweb package can own /var/www/tmp on OpenBSD. Moving gotweb's tmp dir to /var/www/got/tmp sidesteps that issue.


switch 'tog tree' repository path argument to a new -r option


fix 'got blame' and 'tog blame' on files added on worktree's current branch


revert 6b8a2b8fcd99c4365b1aa9513c0f0149beac2491; it broke 'n' (search next) In the log view, 'n' sometimes failed to search for the next matching commit and tog dead-locked. So a yield or mutex unlock/lock is required for search to work. Perhaps we need a different fix?


replace improperly removed break


goto done and remove erroneous break


enable searching in tog diff view ok stsp


prepare local variable in open_diff_view and close_diff_view for diff view searching ok stsp


fix a bug where 'got log PATH' failed to map PATH into the repository The problem occured inside /usr/src/sys due to the /sys symlink, where /usr/src was a got work tree. If a work tree is present we already have the right path so checking the disk is pointless.


make 'tog log' show first-parent history by default; add -b option and B key


tweak default colors for directories and symlinks in 'tog tree'


Remove redundant error check after got_object_id_by_path(). An error code is always returned when the oid is NULL.


Remove double lock in error path.


Remove unnecessary pthread_yield(3). In the two cases a context switch isn't necessary as the thread isn't blocked and doesn't need to wait for its sibling.


move match_object_id() into the library; supersedes got_repo_resolve_commit_arg


fix 'tog log -c' with tags


fix suspending and resuming tog with Ctrl-Z and fg; issue reported by naddy@


fix 'tog tree' usage displayed in error case (patch by naddy@)


unbreak got and tog commands by disabling GNU extensions in getopt_long(3)


update usage


make got and tog accept a --version argument; -V option is a bit obscure prompted by a question from tedu@


make 'tog log PATH' fail again when a non-existent path is specified


fix switching to tog's tree view when logging a path; reported by naddy@


add copyright year for files already touched in 2020