Commits


allow single-component reference names with got_ref_alloc()


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.


mention where code for got_path_find_prog() came from


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


document new got commit features


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


missing error check in apply_unveil()


tog: don't clear diff view contents when indicating diff progress this is much easier on the eyes when moving through diffs


fix typo in error message and improve indentation


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()


avoid undefined behaviour (comparison with string literal)


fix linear ancestry verification check for 'got update'


add got_commit_graph_find_youngest_common_ancestor()


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


fix leftover lockfiles from parse_ref_file()


fix locking of packed ref file in got_ref_open()


handle well-known refs more obviously in got_ref_open()


don't hide errors in got_ref_open()