Commit Briefs

499d7ecc53 Stefan Sperling

rename got log's -f option to -b


d969fa15b6 Stefan Sperling

inform the user when switching branches


78527a0aa0 Stefan Sperling

move a comment to a better place and expand it


cc79381d1a Stefan Sperling

NUL-terminate empty logmsg buffer for strlcat(3)

Because the logmsg output buffer was not NUL-terminated after allocation, strlcat(3) could append log message contents copied from the temporary file at a wrong memory location. In the case observed by me, this bug resulted in a broken commit object.


d4592c7c7a Stefan Sperling

catch fopen(3) failure in collect_commit_logmsg()


8656d6c4d5 Stefan Sperling

make struct got_commitable opaque to library users


df056ada35 Stefan Sperling

introduce got_error_path()


b28fe61a13 Stefan Sperling

apply_unveil(): use GOT_DIR_NOT_EMPTY


59544d4d62 Stefan Sperling

fix wording in error message





efa2b6f7f7 Stefan Sperling

another typo fix


d5751d4985 Stefan Sperling

fix typo in comment


024e9686ae Stefan Sperling

add branch support to 'got update'


08573d5b25 Stefan Sperling

add branch support to 'got checkout'


016a88dd43 Stefan Sperling

report base commit of fileindex entries to status callback



314a6357a2 Stefan Sperling

got commit can't use unveil with an editor

Theo says unveil(2) is supposed to traverse exec(2) (though this seems to be broken or not implemented at present). In which case the commmit message editor would find itself without access to files it needs (startup config files, shared libs, user's home dir, etc.) Apply unveil after the log message has been written.


0ee7065d8d Stefan Sperling

make 'got commit' look up EDITOR in PATH

The previous code only worked if EDITOR contained an absolute path.



3809565b92 Stefan Sperling

missing error check in apply_unveil()


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()