98 Commits (e31aba42fb12bdeb0f850829e008e1e3f43af500)

Author SHA1 Message Date
Taylor Blau fa3bff2466 lockfile.c: introduce 'hold_lock_file_for_update_mode' 5 years ago
Johannes Schindelin 033abf97fc Replace all die("BUG: ...") calls by BUG() ones 7 years ago
Jeff King 076aa2cbda tempfile: auto-allocate tempfiles on heap 7 years ago
Junio C Hamano 3f061bf514 lockfile: LOCK_REPORT_ON_ERROR 8 years ago
Matthieu Moy aed7480ca4 lockfile: improve error message when lockfile exists 9 years ago
Matthieu Moy 3030c295ba lockfile: mark strings for translation 9 years ago
Ralf Thielow aae42e43c4 lockfile: remove function "hold_lock_file_for_append" 9 years ago
Michael Haggerty 1a9d15db25 tempfile: a new module for handling temporary files 10 years ago
Michael Haggerty 9c77381d6a commit_lock_file(): use get_locked_file_path() 10 years ago
Michael Haggerty b4fb09e4da lockfile: add accessor get_lock_file_path() 10 years ago
Michael Haggerty c99a4c2db3 lockfile: add accessors get_lock_file_fd() and get_lock_file_fp() 10 years ago
Michael Haggerty 2db69de81d lockfile: move documentation to lockfile.h and lockfile.c 10 years ago
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