Commit Briefs

0d5bb27670 Stefan Sperling

allow editing of log message comments with 'got histedit'

This makes it possible to remove just comment lines from log messages during a histedit operation, leaving the rest of the log message as-is. The behaviour of treating changes to comment lines as no-ops was coded to prevent mistakes during 'got commit/import/tag', where the command will error out if the log message template is not modified. This is not appropriate for histedit because histedit is used to fix such mistakes. ok millert@


73e7eb7d1c Stefan Sperling

add got_error_fmt()

got_error_fmt() could eventually replace got_error_path() which has already been used to construct errors with strings that are not actually paths... ok millert@


4cc6a5a5fa Stefan Sperling

add got_error_from_errno_fmt() for more flexibility in error messages

suggested by and ok millert


748d5cab9a Christian Weisgerber

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


f5a09613ce Christian Weisgerber

reset tog blame view's scroll position if line count shrinks too much

ok stsp


b2d2e70d74 Stefan Sperling

bump version number


c39ec06321 Stefan Sperling

sync distfile list (tags/0.45)


dd30c874bb Stefan Sperling

CHANGES for 0.45


a347e6bb7c Stefan Sperling

test behaviour of histedit -f with an empty log message


239f5c5ae4 Stefan Sperling

add a basic test case for histedit -f


71392a05f2 Stefan Sperling

prevent log message loss of folded commits during histedit

If the histedit log message editor exits without saving its buffer, Got threw away log messages of all commits which were folded. Only the last commit message is preserved, which could be something meaningless like "fixup". Instead, preserve the initial editor buffer content as-is. That is not going to be an ideal log message, but doesn't throw away information and stands out visually because the newly created log message will start with a comment like '# log message of folded commit a0ff...' Problem reported by jrick


b380533788 Stefan Sperling

histedit -f conflicts with -F option

Also fixed as part of a different patch from jrick ok jrick


ff69268e3d Stefan Sperling

use a helper function to generate error messages for mutually exclusive options

Inspired by a different patch from jrick ok jrick





7f64f4d6a7 Christian Weisgerber

accommodate newer ncurses where panel_userptr() returns a const pointer

ok stsp


826082fed4 Stefan Sperling

use getline(3) instead of fparseln(3) in tog, for better portability

ok millert


466785b926 Josh Rickmar

add histedit -f flag for folding shortcut

"please push it" stsp


3f670bfb38 Stefan Sperling

fix display of lines that end in "\r\n" in tog(1)

Problem found and reported by jrick ok naddy


437adc9d5b Yang Zhong

add fd field to got_worktree, modify got_fileindex_entry_update to use fds

These changes are intended to make got more compatible with FreeBSD's Capsicum. ok stsp




9cd7cbd127 Stefan Sperling

deep-copy reference names in the log and tree views to prevent use-after-free

ok naddy


bf30f15468 Christian Weisgerber

miscellaneous minor style issues