85 Commits (340f2c5e631c788c0e4a508c21349e04ceed7966)

Author SHA1 Message Date
Johannes Sixt 30f8160d26 lockfile: wait using sleep_millisec() instead of select() 10 years ago
Johannes Sixt a8a17756bb lockfile: convert retry timeout computations to millisecond 10 years ago
Johannes Sixt 1e9676ec0a lockfile: replace random() by rand() 10 years ago
Junio C Hamano 00b7cbfcb3 copy.c: make copy_fd() report its status silently 10 years ago
Michael Haggerty 044b6a9efe lockfile: allow file locking to be retried with a timeout 10 years ago
Nguyễn Thái Ngọc Duy fa137f67a4 lockfile.c: store absolute path 10 years ago
Jonathan Nieder fb43bd1cd1 lockfile: remove unable_to_lock_error 10 years ago
Michael Haggerty 013870cd2c fdopen_lock_file(): access a lockfile using stdio 10 years ago
Michael Haggerty 697cc8efd9 lockfile.h: extract new header file for the functions in lockfile.c 10 years ago
Michael Haggerty 216aab1e3d hold_locked_index(): move from lockfile.c to read-cache.c 10 years ago
Michael Haggerty 4d423a3e62 hold_lock_file_for_append(): restore errno before returning 10 years ago
Michael Haggerty ec38b4e482 get_locked_file_path(): new function 10 years ago
Michael Haggerty 316683bd37 lockfile.c: rename static functions 10 years ago
Michael Haggerty 47ba4662bf lockfile: rename LOCK_NODEREF to LOCK_NO_DEREF 10 years ago
Michael Haggerty 751bacedaa commit_lock_file_to(): refactor a helper out of commit_lock_file() 10 years ago
Michael Haggerty 0c0d6e8601 trim_last_path_component(): replace last_path_elm() 10 years ago
Michael Haggerty 6cad805332 resolve_symlink(): take a strbuf parameter 10 years ago
Michael Haggerty 5025d8450a resolve_symlink(): use a strbuf for internal scratch space 10 years ago
Michael Haggerty cf6950d3bf lockfile: change lock_file::filename into a strbuf 10 years ago
Michael Haggerty 3e88e8fc08 commit_lock_file(): use a strbuf to manage temporary space 10 years ago
Michael Haggerty 2091c5062c struct lock_file: declare some fields volatile 10 years ago
Michael Haggerty 707103fdfd lockfile: avoid transitory invalid states 10 years ago
Michael Haggerty 1b1648f46b commit_lock_file(): rollback lock file on failure to rename 10 years ago
Michael Haggerty 8e86c155d2 close_lock_file(): if close fails, roll back 10 years ago
Michael Haggerty 8a1c7533e2 commit_lock_file(): die() if called for unlocked lockfile object 10 years ago
Michael Haggerty 4f4713df94 commit_lock_file(): inline temporary variable 10 years ago
Michael Haggerty a1754bcce9 remove_lock_file(): call rollback_lock_file() 10 years ago
Michael Haggerty e31e949b9f lock_file(): exit early if lockfile cannot be opened 10 years ago
Michael Haggerty 7108ad232f cache.h: define constants LOCK_SUFFIX and LOCK_SUFFIX_LEN 10 years ago
Michael Haggerty 0a06f14837 lockfile.c: document the various states of lock_file objects 10 years ago
Michael Haggerty 04e57d4d32 lock_file(): always initialize and register lock_file object 10 years ago
Michael Haggerty ebb8e380e9 hold_lock_file_for_append(): release lock on errors 10 years ago
Michael Haggerty 41dd4ffaf9 lockfile: unlock file if lockfile permissions cannot be adjusted 10 years ago
Michael Haggerty 26f5d3b65f rollback_lock_file(): set fd to -1 10 years ago
Michael Haggerty 9085f8e279 rollback_lock_file(): exit early if lock is not active 10 years ago
Michael Haggerty 5527d5349b rollback_lock_file(): do not clear filename redundantly 10 years ago
Michael Haggerty 419f0c0f68 close_lock_file(): exit (successfully) if file is already closed 10 years ago
Michael Haggerty e197c21807 unable_to_lock_die(): rename function from unable_to_lock_index_die() 10 years ago
Steffen Prohaska b29763aa9b copy_fd(): do not close the input file descriptor 11 years ago
Junio C Hamano 93dcaea226 lockfile: allow reopening a closed but still locked file 11 years ago
Ronnie Sahlberg 447ff1bf0a lockfile.c: make lock_file return a meaningful errno on failurei 11 years ago
Ronnie Sahlberg 6af926e8bc lockfile.c: add a new public function unable_to_lock_message 11 years ago
Nguyễn Thái Ngọc Duy 626f35c893 read-cache: relocate and unexport commit_locked_index() 11 years ago
Michael Haggerty 2fbd4f92fa lockfile: fix buffer overflow in path handling 12 years ago
Carlos Martín Nieto e2a57aac8a Name make_*_path functions more accurately 14 years ago
Matthieu Moy a8c37a0e01 lockfile: show absolute filename in unable_to_lock_message 15 years ago
Miklos Vajna 1b018fd9be git branch -D: give a better error message when lockfile creation fails 16 years ago
Felipe Contreras 4b25d091ba Fix a bunch of pointer declarations (codestyle) 16 years ago
Alex Riesen 691f1a28bf replace direct calls to unlink(2) with unlink_or_warn 16 years ago
John Tapsell bdfd739dac Make the 'lock file' exists error more informative 16 years ago