5 years ago 62d20534cc Stefan Sperling
remove redundant condition check in cmp_entries()
5 years ago bad322f277 Stefan Sperling
make cmp_entries() operate on paths instead of structs
5 years ago 9d2a8e5300 Stefan Sperling
move forward declaration of diff_fileindex_tree() further down
5 years ago 70e2377c02 Stefan Sperling
move definition of cmp_entries() closer to point of use
5 years ago 63de413661 Stefan Sperling
turns out in_same_subdir() check is mostly redundant
5 years ago c18d206ea9 Stefan Sperling
simplify in_same_subdir()
5 years ago 8598730929 Stefan Sperling
eliminate code duplication in cmp_entries() and in_same_subdir()
5 years ago 99fda3ad1a Stefan Sperling
eliminate redundant strlen() call inside in_same_subdir()
5 years ago 5d79cba5f4 Stefan Sperling
eliminate redundant strlen() call in cmp_entries()
5 years ago 6e8d14a311 Stefan Sperling
eliminate code duplication in cmp_entries()
5 years ago fd92308e18 Stefan Sperling
invert same subdir check in cmp_entries(); no functional change
5 years ago f06111e55c Stefan Sperling
remove unused parameter of in_same_subdir()
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()