Commits
- 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
- Commit:
ae6a69782e0a92064dbfeb83896ce38a90977414
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
speed up 'tog diff' get_filestream_info() a bit
With this, 'tog diff' is able to display clang 10 commits.
However, such huge diffs still take a rather long time to open.
get_filestream_info() is a hack. Ideally, diff line-offset information needed
by tog should be part of the result of the diff operation, rather than forcing
tog to calculate line offsets during a post-processing step.
- Commit:
7510f233f013971b4e0e7137722854f8f5c1e52b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simplify resource cleanup upon errors in get_filestream_info()
- Commit:
0dc7faa9e43711899b05ff94aa85278352daf2fc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix double-free when quitting tog's diff view; found by ofree
at /home/stsp/src/got/tog/tog.c:3415
3415 free(s->line_offsets);
(gdb) bt
msg=0x80e2a4cd87e "chunk is already free %p")
at /usr/src/lib/libc/stdlib/malloc.c:300
check=1) at /usr/src/lib/libc/stdlib/malloc.c:1070
clear=0, check=<optimized out>, argsz=0)
at /usr/src/lib/libc/stdlib/malloc.c:1431
at /usr/src/lib/libc/stdlib/malloc.c:1488
at /home/stsp/src/got/tog/tog.c:3415
at /home/stsp/src/got/tog/tog.c:518
at /home/stsp/src/got/tog/tog.c:954
at /home/stsp/src/got/tog/tog.c:2728
at /home/stsp/src/got/tog/tog.c:5683
(gdb)
- Commit:
369eef86a8da74dcb95f04df3a266d9b8c8d2d9b
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
fix some memory leaks in tog
- Commit:
528c17ddfb50dc3e1efdba2fcfec0bff8a1f2c01
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use a more precise regex for color-highlighting 'commit' lines in 'tog log'
- Commit:
0587e10c4c4e054f8aeda2bd499b76c0ec60dc40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add symlink support to 'got blame' and 'tog blame'
- Commit:
0d6c6ee302022b4b2746cd5a85df1f34f8891b9c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got/tog tree' show symlink targets like 'ls -lF' does: link@ -> target
- Commit:
0208f208304c36921fbcd86d33751b877aab1e96
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
show a list of paths changed in a commit with 'got log -P', and in tog
requested by matthieu@
- Commit:
79cc719fb21cd573f0b669dddf501e3fa5b389fe
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
filter out "remote/*/HEAD" references in tog log view
- Commit:
d2ad595c2cf140e23c761ef62916dbc49b40f66b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix "searching..." displayed in tog log view while merely scrolling down
- Commit:
f9686aa566bfec8d68b52910b3448bdaeb5d2358
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
show 'searching...' during 'tog log' search even if no new commits are loaded
- Commit:
f9967bca13c359aa4ba51c67a63fad42f9569626
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
display "no matches found" if no commit matches a 'tog log' search