Commits
- Commit:
aa8b5dd032c8cba930e5be67a90069a95e0001b8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a use-after-free in get_changed_paths() in got and tog
Once the parent commit is closed the tree_id1 pointer is no longer valid,
but the pointer was still being used. Make a deep copy to fix this issue.
- Commit:
267bb3b89907b99d17aece9890a57afe2982b782
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug a small memory leak in tog's show_diff_view() function
- Commit:
ff6cc066002c80a4503e255f3a5a974734d223af
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove now unused variable in browse_ref_tree() I overlooked; patch by naddy
- Commit:
bc573f3b85b11a3e55feecd664803f1cb71f4204
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a double-free that ocurred upon exit from 'tog tree'; found by naddy
- Commit:
dbdddfee1482b50ca8c4a0be06e4fec6a59fb9f4
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
switch from SIMPLEQ to equivalent STAILQ macros
The singly-linked tail queue macros were added to OpenBSD 6.9 and
are more widely available on other systems.
ok stsp
- Commit:
1d0f405485b02cc4480ea188879e4122e0ea32bd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for close(2) error in got_repo_close() and propagate errors up
ok tracey
- Commit:
ec6d1a368f4f81cda70f8517eb0dec5028b847b8
- From:
- Josh Rickmar <jrick@companyzero.com>
- Date:
Fix strftime(3) short buffer checks
strftime(3) returns 0 if the buffer was too short to write the
complete string (including NUL) and will never return more than
maxsize-1.
ok stsp
- Commit:
c0c4acc88418ca34083144bd4feeb1c4001fc092
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tog: fix behaviour when 'n' is pressed before a search was started with '/'
reported by + ok naddy
- Commit:
56b63ca4ab1049de6fa2d6910ce22c16e2b42a53
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere
ok millert, naddy
- Commit:
1fddf795d370eab80e6b2a3e502a6e7e89c9e963
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix 'tog blame' segfault upon empty input file; reported by + ok naddy
- Commit:
e6b8b8905c5a1967c31bf6b8abed6d6b05fbff14
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
tog log: terminate author field at '>' in case there is no '@'
ok stsp
- Commit:
f193b03845f89ae0e671e5f871fe635020cb7b48
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got_reflist_object_map_free to got_reflist_object_id_map_free
- Commit:
dae613fa0e1938aee68699d7118412f82912facf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove a comment that is now misleading
- Commit:
d9dff0e5c658f1bef8647522dcb5b851b3f4734e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch reflist to TAILQ; insert elements more efficiently for sorted input
ok naddy
- Commit:
87670572d0f25fb0137be54add50dd728195bb0d
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
switch the "tog <path>" log view shortcut to the global reference list, too
ok stsp
- Commit:
84de91061b4d6cf5649efd5a42c4c3b90550332c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Add a refs argument to got_repo_match_object_id(), replacing 'resolve_tags'
Make use of this where possible to avoid re-reading references from disk.
ok naddy
- Commit:
8924d611db93087fb80e3221b1876b5ebabe5f0b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch tog ref view to the global reference list as well
ok naddy
- Commit:
51a10b52c0575add67661e603b216358d68f8ed8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make tog store refs and object id map in global variables instead of per view
ok naddy
- Commit:
d2075bf3e6019b7903ce19414f09348839e36fbc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make use of reflist object id maps in tog log and diff views
This is a partial fix for performance issues when browsing the FreeBSD
Git repo, which can easily contain more than 4000 references.
ok naddy
- Commit:
c156c7a4f456c171f9e458793a2baa06389f8e1e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not mix up repositories if tog's -r option is used inside a work tree
with input from and ok naddy
- Commit:
6059809a13b5d528052e38f84661039e6565f458
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; by emaste@freebsd
Same change as 16aeacf7088d, for subdirectories other than lib/
- Commit:
748d5cab9a3d0d5d0edc28c8fd38430c684b1e55
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
replace unprintable characters with '.' before passing them to curses
Otherwise, ncurses will replace them with some printable representation
whose width we can't predict, and wunctrl() fails to return the
replacement for 0x80..0x9f.
ok stsp
- Commit:
f5a09613ce18eb49de0d07d7f7a1dbd5dcac25c8
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
reset tog blame view's scroll position if line count shrinks too much
ok stsp
- Commit:
7f64f4d6a730d414a4060625b2aceb39b89621eb
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
accommodate newer ncurses where panel_userptr() returns a const pointer
ok stsp
- Commit:
826082fed43c92130e9545e829c660b3c2fd2fab
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use getline(3) instead of fparseln(3) in tog, for better portability
ok millert