5 years ago 5d56da8198 Stefan Sperling
happy new copyright year
5 years ago 21908da4c3 Stefan Sperling
fix bug where update got confused by sub-sub directories
5 years ago bd4792ec81 Stefan Sperling
fix more bugs in the update walk and add more tests
5 years ago a7f9d64ddf Stefan Sperling
change GOT_INDEX_ENTRY prefix to GOT_FILEIDX
5 years ago b6d05318cb Stefan Sperling
don't bother with memcpy for hdr in got_fileindex_read()
5 years ago 27d0e5bd84 Stefan Sperling
flush the file index after writing it
5 years ago a5744d7100 Stefan Sperling
don't bother with memcpy of header when writing the file index
5 years ago 5095292713 Stefan Sperling
fix various issues in new update implementation
5 years ago 27793341b0 Stefan Sperling
introduce special error code for a corrupt file index
5 years ago 8da9e5f4a4 Stefan Sperling
implement checkout+update as single-pass diff between file index and tree
5 years ago 7a9df742c2 Stefan Sperling
replace use of got_pathset in worktree code with RB tree
5 years ago 133d2798cc Stefan Sperling
use RB tree directly instead of a pathset in file index code
5 years ago 6b798c3c8a Stefan Sperling
don't forgot to free file index entries in got_fileindex_free()
5 years ago b504a804cf Stefan Sperling
switch file index entries from TAILQ to got_pathset
5 years ago e1ed7f7744 Stefan Sperling
must use safe iteration over file index entries
5 years ago 512f0d0efc Stefan Sperling
make 'got update' remove files which were deleted
5 years ago 3c5b70f243 Stefan Sperling
always NUL-terminate paths in write_fileindex_path()
5 years ago 6061990728 Stefan Sperling
fix check for NUL byte in read_fileindex_path()
5 years ago 515140783d Stefan Sperling
preparation for idempotent checkout: read exisiting file index
5 years ago fc76cabb0c Stefan Sperling
store base commit of each blob in file index
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
6 years ago 0a585a0d64 Stefan Sperling
remove GOT_ERR_NO_MEM, we can just use errno in those cases