5 years ago be7061eb88 Stefan Sperling
ensure that 'got update' stays on the current branch
5 years ago 507dc3bb12 Stefan Sperling
add a basic 'got update' command; does not merge files yet
5 years ago e5dc719849 Stefan Sperling
fix 'same path prefix' check during checkout
5 years ago f609be2e65 Stefan Sperling
fix got_worktree_get_repo_path()
5 years ago 2fbdb5aefe Stefan Sperling
remove useless strdup from got_worktree_get_repo_path()
5 years ago 49520a3227 Stefan Sperling
verify path prefix when checking out into existing work tree
5 years ago 381be7cc5b Stefan Sperling
don't bother opening trees outside of path prefix
5 years ago eac9755fe4 Stefan Sperling
don't bother opening a blob if checkout will skip it
5 years ago a207cf0a94 Stefan Sperling
rename add_file_on_disk() to blob_checkout()
5 years ago 144ad43a62 Stefan Sperling
make checkout skip blobs already recorded in file index
5 years ago eecfbcd1f5 Stefan Sperling
introduce macros for status codes
5 years ago d7b62c98be Stefan Sperling
signal existing files in checkout progress output
5 years ago d70b8e3004 Stefan Sperling
allow checkout on top of an existing tree
5 years ago 2e22a7cd96 Stefan Sperling
remove redundant existence check
5 years ago 515140783d Stefan Sperling
preparation for idempotent checkout: read exisiting file index
5 years ago a143fb7868 Stefan Sperling
try to sync file index to disk if checkout hits an error
5 years ago 271d2a38b1 Stefan Sperling
store parsed head reference in struct got_worktree
5 years ago fc76cabb0c Stefan Sperling
store base commit of each blob in file index
5 years ago eaccb85f72 Stefan Sperling
store a parsed base commit ID in struct got_worktree
5 years ago 0f92850ea2 Stefan Sperling
fix naming of some work tree meta data files and macros
5 years ago 93a3027739 Stefan Sperling
make got_worktree_checkout_files() infer base commit from meta data
5 years ago 65596e1591 Stefan Sperling
store base commit in a dedicated meta file
5 years ago 08d425ea09 Stefan Sperling
undo previous
5 years ago a1a7858afe Stefan Sperling
store commit hash along with the HEAD ref in .got/head
5 years ago 61d6eaa398 Stefan Sperling
fix broken fwrite() check in add_file_on_disk()