Commit Briefs

2b92fad780 Stefan Sperling

test and fix expected file status after 'got cherrypick'


9c6338c405 Stefan Sperling

introduce sync_fileindex() helper in worktree.c


234035bc79 Stefan Sperling

add 'got cherrypick' command



c932eeeb83 Stefan Sperling

make 'got update' bump the base commit ID of unchanged files

This change makes it actually possible to get around commit-time out-of-dateness by running 'got update'. The test added with this commit shows that our out-of-dateness check is currently too simplistic; an update is required between any two commit operations! It would be better to allow commits to proceed until a situation arises where file content must be merged.


8656d6c4d5 Stefan Sperling

make struct got_commitable opaque to library users



024e9686ae Stefan Sperling

add branch support to 'got update'


08573d5b25 Stefan Sperling

add branch support to 'got checkout'



016a88dd43 Stefan Sperling

report base commit of fileindex entries to status callback



638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


19332e6de6 Stefan Sperling

avoid undefined behaviour (comparison with string literal)


33ad4cbe59 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



1dd5492090 Stefan Sperling

open the file index just once when adding multiple files


2af4a04192 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


656b1f76d3 joshua stein

while (1) -> for (;;)


230a42bdc6 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)



324d37e7c7 Stefan Sperling

make got path APIs available to library consumers


4229330be4 Stefan Sperling

fix allocation size in alloc_added_blob_tree_entry()


0f63689de6 Stefan Sperling

remove unnecessary allocation in match_ct_parent_path()


ce0de6b686 Stefan Sperling

fix memleak in write_tree()