78 Commits (11c6659d85d72273a4161c8779123147b52fbcb2)

Author SHA1 Message Date
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 15 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
Matthieu Moy e43a6fd3e9 More friendly message when locking the index fails. 16 years ago
Jeff King 57b235a4bc refactor signal handling for cleanup functions 16 years ago
Jeff King 4a16d07272 chain kill signals for cleanup functions 16 years ago
Junio C Hamano 0693f9ddad Make sure lockfiles are unlocked when dying on SIGPIPE 16 years ago
Junio C Hamano acd3b9eca8 Enhance hold_lock_file_for_{update,append}() API 16 years ago