4 years ago 965988c576 Stefan Sperling
plug memory leak introduced in commit 6fc93f379e4f736797334532691d298244b2b014
4 years ago 22902794fc Stefan Sperling
this lseek() call in read_dirlist() isn't needed
4 years ago 7f91a1339f Stefan Sperling
open files during status crawl in a race-free way, too
4 years ago ae8965b97d Stefan Sperling
add missing fdopendir() error check in read_dirlist()
4 years ago 6fc93f379e Stefan Sperling
prevent the status crawl from racing with paths changing in the filesystem
4 years ago 56e0773df7 Stefan Sperling
convert tree entries from SIMPLEQ to an array
4 years ago 6ced7ba8b0 Stefan Sperling
avoid a NULL deref in diff_fileindex_tree(); found by jj@ with scan-build
4 years ago 40b289d730 Stefan Sperling
make 'got status' ignore inaccessible directories (reported by semarie)
4 years ago 63c5ca5de4 Stefan Sperling
detect and ignore Git submodules
5 years ago b15816dd9e Stefan Sperling
in got_fileindex_entry_update() don't hide errors other than ENOENT
5 years ago ef5e02fd4b Stefan Sperling
don't clobber errno value of opendir(3); found by Hiltjo Posthuma
5 years ago 8957ae76fe Stefan Sperling
ensure that file index entry perms map to regular files
5 years ago 3cd0423509 Stefan Sperling
fix definition of GOT_FILEIDX_F_STAGE_SHIFT
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 3f762da016 Stefan Sperling
rename file index entry variables called 'entry' to 'ie'
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 6f8967eb20 Stefan Sperling
always initialize file index entry's path_len field
5 years ago d572f5860a Stefan Sperling
eliminate strlen() calls during fileindex rb tree searches
5 years ago 6bf2c31673 Stefan Sperling
avoid unnecessary memcpy() in read_fileindex_path()
5 years ago fe1d3e7a4a Stefan Sperling
don't potentially leak entry->path in read_fileindex_entry()
5 years ago 26a7fe28be Stefan Sperling
add conversion functions for fileindex/stat permission bits