Commit Briefs


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.


Stefan Sperling

make 'got commit' look up EDITOR in PATH

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



Stefan Sperling

missing error check in apply_unveil()










joshua stein

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







Stefan Sperling

update 'got add' documentation



joshua stein

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


joshua stein

got: support adding multiple files at a time

make adding files already in the file-index not a fatal error


joshua stein

while (1) -> for (;;)


joshua stein

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)