Commits


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'


implement spawning an editor to collect a commit message bails on empty messages, trims leading and trailing newlines this currently disables the unveil in the commit process because it's not compatible with spawning the editor also prevent commits when there are no changes


update help string of 'got add' for multiple file support


heed API namespace: got_dir_is_empty -> got_path_dir_is_empty


checkout: if worktree path exists and is empty, suppress mkdir failure


lock branch reference file during 'got commit' to prevent a race


got add's file path argument is not optional


update 'got add' documentation


open the file index just once when adding multiple files


got_error_set_errno: take a char arg to pass to got_error_prefix_errno $> got rm a got: : No such file or directory becomes $> got rm a got: /path/to/a: No such file or directory


got: support adding multiple files at a time make adding files already in the file-index not a fatal error


while (1) -> for (;;)


got_error_from_errno -> got_error_prefix_errno also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)