Commit Briefs

2c7829a4ca Stefan Sperling

implement 'got init'


102ff934b4 Stefan Sperling

don't report 'base bumped' status if base is up-to-date



1a36436d4d Stefan Sperling

relax out-of-dateness check for 'got commit'


46b6ee7302 Stefan Sperling

rename some variables


af12c6b9e6 Stefan Sperling

ensure that file index is synced to disk in case of errors


e20a8b6f0d Stefan Sperling

allow multiple file path arguments for 'got revert'


07f5b47a74 Stefan Sperling

don't leak 'relpath' memory in got_worktree_schedule_add()


17ed46186c Stefan Sperling

allow removing multiple paths at once for 'got rm'



a8db5ed88e Stefan Sperling

remove unused fields from struct merge_file_cb_arg


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)