Commits
- Commit:
152c1c93d3f4f950c827a16175c3f439311e28c0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tog: make it possible to open a ref view from the tree view
- Commit:
9a1d514689bb6e57bb47e4c13630ba38bd650a39
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
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
- Commit:
e99e2d157170987cd8665508a0adcbec58d040b6
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
let tog's tree and ref commands call their own usage() and not each other's
- Commit:
c42c9805fb36a73a8de6f81318a07617264ca7e0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
support opening a tree view from the ref view; requested by naddy
- Commit:
f2f6d207e8856d57057b4c2e3237fcfade4278ed
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
trigger log thread if a log view is opened as a child view; found by naddy
- Commit:
a1b774028efab4c5ed609551502edf024af8cca5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix calls to ref_usage(); found by naddy
- Commit:
6458efa5c16a7c2047493dd0b0ba8b6c2f7cf79e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
initial 'tog ref' implementation
ok naddy tracey
- Commit:
78756c87d902bd89e7c1e8ef59bf2da2439e3bc2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
store reflists in view state where required and get rid of reflist pointers
ok tracey naddy
- Commit:
3dbaef42733b9b959e3fdbd00ea0dc98f1aadd9e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'tog diff' accept reference and tag arguments; add -w and -C options
ok naddy tracey
- Commit:
27829c9eecdd45b95815c64d7fea5216ca5bf259
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reset tog diff view's scroll position if diff context shrinks too much
- Commit:
64453f7e55c4c69b6cd08229929ed8227b789ff8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle binary files in got/tog diff commands; add -a options to force text
- Commit:
be659d10a8dd75e169fb7a246f54238dfc4386e8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix type of filesize output parameter of got_object_blob_dump_to_file()
- Commit:
8fa913ec61095de669c9ca40e3cd782d53c85bdc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove now pointless 'check_disk' parameter of got_repo_map_path()
suggested by naddy
- Commit:
bfd61697d22df765ef7a98856bc68c4b19109c6e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make tog avoid got_repo_map_path() if a work tree is available
ok naddy
- Commit:
276b94a1f9ff915aab767e558957527ccddf43e9
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
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
- Commit:
41605754d020cd4be569b2dffdfac47451ea8925
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
highlight matched search terms in tog diff and tog blame views
ok naddy@
- Commit:
135a2da0c5bd18fcf65ac142fa604ec03ad1aa2d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
show current/total line numbers in tog's diff view header
- Commit:
e54cc94af2217992a549a0ae0cf2d38314120297
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug two memory leaks in tog's draw_file()
- Commit:
fe621944e83fe6367f7bff97128b4240a9cdc7c5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
62d463cac1fd99c423acb07c0367c649724a2a9a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
indentation fixes
- Commit:
74cfe85e3941b6738539031e8c2cf8e59db13eab
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use got_path_dirname() in tog's input_log_view(); avoids const dirname(3)
ok naddy
- Commit:
6879ba4225a833ea466b3512329293abfd9bf33a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
do not treat the -h and -V flags as errors
When run with the -h or -V option, output the help or version text
to stdout and exit with success (0). Only write usage and help
information to stderr and exit with error (1) if there is a mistake
in the command syntax.
tweak and ok stsp
- Commit:
9814e6a376df853a88deb889d68f178c803ad8ca
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
prefer the BSD extension to reset getopt over the GNU one
Sadly there is no portable way to reset getopt(3).
BSD: optind = 1; optreset = 1;
GNU: optind = 0;
ok stsp
- Commit:
48cae60d0ae734495d85aa8a8d9409e71cfe7d76
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make dangling symbolic references show up in 'got ref -l'
Storing a resolved ID for each reference list item was a bad idea.
This ID cannot be resolved if a symbolic references points to a reference
which does not exist. Such symrefs were skipped by got ref -l as a result.
Just let users of reference lists resolve the IDs as needed.
- Commit:
b46c1e045aae963c26a2e4959236dcdd6c285813
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
Print newline to clear the bottom line when tog exits.
When a curses(3)-based application exits, the cursor is positioned
at the start of the bottom line, and the shell will issue the new
prompt there. However, the bottom line may still contain remnants
of the curses screen. This is only noticeable on terminals that
do not switch to/from an alternate screen buffer.
ok stsp