4 years ago 0aeb8099a0 Stefan Sperling
set a staged file type and handle it separately from the on-disk file type
4 years ago 6131ab45b4 Stefan Sperling
remove pointless error checking in got_fileindex_entry_filetype_set()
4 years ago 984c073dfe Stefan Sperling
add getter/setter for staged file index entry filetype
4 years ago 1e0a3718b1 Stefan Sperling
reserve some file entry mode bits for a staged file type
4 years ago 2e1fa22206 Stefan Sperling
give bad symlinks a dedicated file type in the file index
4 years ago ecd6d584a4 Stefan Sperling
fix definition of the GOT_FILEIDX_MODE_PERMS bitmask
4 years ago 3143d852d7 Stefan Sperling
Problem reported by semarie, who also provided initial regression test code. ok semarie
4 years ago 3969253a05 Stefan Sperling
remove implicit entry update from got_fileindex_entry_alloc(); just alloc
4 years ago 7f91a1339f Stefan Sperling
open files during status crawl in a race-free way, too
4 years ago 6fc93f379e Stefan Sperling
prevent the status crawl from racing with paths changing in the filesystem
5 years ago 0cb83759ff Stefan Sperling
implement got_worktree_stage_paths()
5 years ago df3352425b Stefan Sperling
add staged blob SHA1 to on-disk file index; bump file index version
5 years ago 8371870086 Stefan Sperling
define file index stage flags
5 years ago 4d55540539 Stefan Sperling
remove ie->path_len; use path length stored in file index entry flags
5 years ago 9714e35f37 Stefan Sperling
remove unused fileindex flags
5 years ago d6c8720775 Stefan Sperling
require callers to pass path length to got_fileindex_entry_get()
5 years ago d572f5860a Stefan Sperling
eliminate strlen() calls during fileindex rb tree searches
5 years ago 26a7fe28be Stefan Sperling
add conversion functions for fileindex/stat permission bits
5 years ago c4cdcb68ce Stefan Sperling
add support for partial updates, which affect specific paths only
5 years ago 2ec1f75bbb Stefan Sperling
add a basic implementation of 'got rm'
5 years ago d00136be11 Stefan Sperling
implement a basic 'got add' command
5 years ago eb983b4b76 Stefan Sperling
make file index flags private to fileindex.c
5 years ago e288864f31 Stefan Sperling
renmae GOT_FILEIDX_F_NOT_ON_DISK to GOT_FILEIDX_F_NOT_FLUSHED
5 years ago a0bf6e7678 Stefan Sperling
rename 'intent-to-add' file index flag to 'not-on-disk'
5 years ago 927df6b74a Stefan Sperling
allow restricting 'got diff' and 'got status' to a path in work tree