Commit Briefs

Thomas Adam

sync files from diff.git b72f51ffc39028023059fc994542565691b669fa

This fixes a scrolling problem in tog's diff view for diffs which contain lines of the form "Binary files %s and %s differ".


Thomas Adam

portable: FreeBSD: remove sha1.h

sha1.h will be included portably.


Thomas Adam

portable: add compat wrappers for timespec*()

Although there are definitions for timespec*() functions in libbsd, these were added fairly recently, which means not all non-BSD systems will have them. In such cases, provide a portable wrapper.




Thomas Adam

sync dist file list


Thomas Adam

use time-based rate-limiting for gotadmin progress output

Suggested by naddy some time ago. ok tracey


Thomas Adam

avoid the creation of new temporary files whenever a packed object is read

This speeds up the creation of pack files by about 30%.





Thomas Adam

fix bogus "object not found" errors when object ID begins with 00

ok thomas_adam



Thomas Adam

wrap overlong lines


Thomas Adam

add O_CLOEXEC (close-on-exec) to openat(2) calls

suggested by millert ok thomas_adam


Thomas Adam

add O_CLOEXEC (close-on-exec) flag to open(2) calls

suggested by millert ok thomas_adam


Thomas Adam

add "e" (close-on-exec) flag to fopen(3) calls

suggested by millert ok thomas_adam


Thomas Adam

remove outdated comment


Thomas Adam

tog: clear search highlighting when reloading view

Clear the search highlighting when replacing the content of a diff view ('<', '>', '[', ']', 'a', 'w') or a blame view ('b', 'p', 'B'). Previously the position would remain highlighted even if the text there had changed. ok stsp@ or a blame view


Thomas Adam

whitespace



Thomas Adam

sort paths in got log -Pp and tog's diff view the same way as in the diff

reported by and fix confirmed by naddy


Thomas Adam

make tog searches start from the current position in all views

ok naddy@


Thomas Adam

ignore the return value of closefrom(2); patch by Anna a.k.a. CyberTailor

millert@ suggests that this check is not needed, and that ideally we should be using close-on-exec instead. I will look into this, but in the meantime this change will help -portable: https://bugs.gentoo.org/828003


Thomas Adam

let new 'tog log' searches start out from the currently selected commit

ok naddy tracey