Commits


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


remove pointless goto in collect_commit_logmsg()


another malloc failure check in collect_commit_msg()


use got_opentemp_named_fd() in collect_commit_logmsg()


check malloc failure in collect_commit_logmsg()


fix linear ancestry verification check for 'got update'