5 years ago 6061990728 Stefan Sperling
fix check for NUL byte in read_fileindex_path()
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 4acef5eedd Stefan Sperling
fix crash in tog when diffing a root commit
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 de060dffe2 Stefan Sperling
handle zero-length files in open_blob() correctly
5 years ago 454a6b592b Stefan Sperling
fix fwrite() call in got_object_blob_dump_to_file()
5 years ago 61d6eaa398 Stefan Sperling
fix broken fwrite() check in add_file_on_disk()
5 years ago b675262576 Stefan Sperling
fix an unchecked fwrite() call in got_object_blob_dump_to_file()
5 years ago f392e333e6 Stefan Sperling
verify total size vs header length in got-read-blob
5 years ago b87c6f836d Stefan Sperling
catch fatal i/o errors in add_file_on_disk()
5 years ago 3fe2daf1bf Stefan Sperling
remove pointless memcopies from fileindex code
5 years ago 7426bbfd03 Stefan Sperling
rename fileindex functions from open/close to alloc/free
5 years ago 9eb6a6b2d1 Stefan Sperling
fix byte-swaps in fileindex read code
5 years ago 52a7447583 Stefan Sperling
implement got_fileindex_read() - not yet tested
5 years ago b8bdcc21c2 Stefan Sperling
rename local variable in got_worktree_checkout_files()
5 years ago 5e0b25c451 Stefan Sperling
wrap another long line