Commits


simplify in_same_subdir()


eliminate code duplication in cmp_entries() and in_same_subdir()


eliminate redundant strlen() call inside in_same_subdir()


eliminate redundant strlen() call in cmp_entries()


eliminate code duplication in cmp_entries()


invert same subdir check in cmp_entries(); no functional change


remove unused parameter of in_same_subdir()


happy new copyright year


fix bug where update got confused by sub-sub directories


fix more bugs in the update walk and add more tests


change GOT_INDEX_ENTRY prefix to GOT_FILEIDX


don't bother with memcpy for hdr in got_fileindex_read()


flush the file index after writing it


don't bother with memcpy of header when writing the file index


fix various issues in new update implementation


introduce special error code for a corrupt file index


implement checkout+update as single-pass diff between file index and tree


replace use of got_pathset in worktree code with RB tree


use RB tree directly instead of a pathset in file index code


don't forgot to free file index entries in got_fileindex_free()


switch file index entries from TAILQ to got_pathset


must use safe iteration over file index entries


make 'got update' remove files which were deleted


always NUL-terminate paths in write_fileindex_path()


fix check for NUL byte in read_fileindex_path()