Commit Briefs




1601cb9fb1 Christian Weisgerber

use plain write() in place of dprintf() with a pre-formatted string

step-by-step guidance from millert; ok millert stsp


0823ffc2f6 Christian Weisgerber

use modern POSIX timestamp fields in struct stat

ok stsp



3168e5da21 Stefan Sperling

zap trailing tabs



257add310e Stefan Sperling

add got.conf(5) configuration file

ok tracey


78fb09675b Christian Weisgerber

use the POSIX standard endian functions and explicitly include <endian.h>

ok stsp


81a12da586 Christian Weisgerber

do not rely on <zlib.h> to pull in <unistd.h>

ok stsp


4dbec0a83c Stefan Sperling

actually make use of an intermediate variable in cmd_clone()

found by tracey's scan-build


ef744db382 Stefan Sperling

in got_object_commit_get_logmsg(), handle log messages which lack '\n'

found by tracey's scan-build


d6b7d054e9 Stefan Sperling

exit the loop in got_privsep_recv_tree() upon error

found while looking over tracey's scan-build results


fca1f6ad74 Stefan Sperling

plug a memory leak in got_privsep_recv_tree() in error case

found while looking over tracey's scan-build results


766841c297 Stefan Sperling

add -s option to 'got remove' which deletes files in a particular status

This makes it easy to deal with files that were deleted from disk by external tooling which modified the work tree. Such files are left in missing (!) status and can now be marked for deletion in bulk via 'got rm -s\! -R .' For consistency, modified (M) files can now be removed with 'got rm -s M' which implies 'got rm -f'. Prompted by feedback from krw@


081470ac52 Stefan Sperling

add -s option to 'got status' which acts as a status code filter

Advantages over using grep are that the list of codes is validated against a list of known status codes, and that it is easier to match staged files which can display status codes in one or both of two columns. Prompted by feedback from krw@


ae6a69782e Stefan Sperling

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.



0dc7faa9e4 Stefan Sperling

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)


369eef86a8 Tracey Emery

fix some memory leaks in tog



7fb414ae4d Stefan Sperling

add a -q option to tests for quiet output and use it for 'make regress'

Previous default output remains when test cases are run individually. ok tracey


6d7260fd5a Stefan Sperling

remove remnants of recursive include support from parse.y


51b930a341 Tracey Emery

clean up those one-liner assignments

ok stsp