Commits


rename got log's -f option to -b


inform the user when switching branches


move a comment to a better place and expand it


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.


catch fopen(3) failure in collect_commit_logmsg()


make struct got_commitable opaque to library users


introduce got_error_path()


apply_unveil(): use GOT_DIR_NOT_EMPTY


fix wording in error message


make 'got log' default to the current branch in a work tree


make 'got checkout' verify that specified branch and commit match


make 'got update' verify that provided commit and branch match


another typo fix


fix typo in comment


add branch support to 'got update'


add branch support to 'got checkout'


report base commit of fileindex entries to status callback


make it possible to duplicate another reference with 'got ref'


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.


make 'got commit' look up EDITOR in PATH The previous code only worked if EDITOR contained an absolute path.


apply_unveil() doesn't call err(3) so rename 'error' to 'err'


missing error check in apply_unveil()


rename got_error_prefix_errno() to got_error_from_errno()


store commit message in work tree and leave it there in case of error


reenable unveil for 'got commit'; keep spawn_editor() working