summaryrefslogtreecommitdiff
path: root/lockfile.c
Commit message (Expand)AuthorAgeFilesLines
* get_locked_file_path(): new functionMichael Haggerty2014-10-011-0/+9
* lockfile.c: rename static functionsMichael Haggerty2014-10-011-5/+5
* lockfile: rename LOCK_NODEREF to LOCK_NO_DEREFMichael Haggerty2014-10-011-1/+1
* commit_lock_file_to(): refactor a helper out of commit_lock_file()Michael Haggerty2014-10-011-14/+26
* trim_last_path_component(): replace last_path_elm()Michael Haggerty2014-10-011-22/+16
* resolve_symlink(): take a strbuf parameterMichael Haggerty2014-10-011-35/+22
* resolve_symlink(): use a strbuf for internal scratch spaceMichael Haggerty2014-10-011-21/+12
* lockfile: change lock_file::filename into a strbufMichael Haggerty2014-10-011-29/+24
* commit_lock_file(): use a strbuf to manage temporary spaceMichael Haggerty2014-10-011-5/+7
* struct lock_file: declare some fields volatileMichael Haggerty2014-10-011-1/+1
* lockfile: avoid transitory invalid statesMichael Haggerty2014-10-011-11/+26
* commit_lock_file(): rollback lock file on failure to renameMichael Haggerty2014-10-011-1/+6
* close_lock_file(): if close fails, roll backMichael Haggerty2014-10-011-10/+18
* commit_lock_file(): die() if called for unlocked lockfile objectMichael Haggerty2014-10-011-0/+3
* commit_lock_file(): inline temporary variableMichael Haggerty2014-10-011-3/+5
* remove_lock_file(): call rollback_lock_file()Michael Haggerty2014-10-011-6/+2
* lock_file(): exit early if lockfile cannot be openedMichael Haggerty2014-10-011-12/+11
* cache.h: define constants LOCK_SUFFIX and LOCK_SUFFIX_LENMichael Haggerty2014-10-011-5/+6
* lockfile.c: document the various states of lock_file objectsMichael Haggerty2014-10-011-0/+42
* lock_file(): always initialize and register lock_file objectMichael Haggerty2014-10-011-9/+16
* hold_lock_file_for_append(): release lock on errorsMichael Haggerty2014-10-011-2/+2
* lockfile: unlock file if lockfile permissions cannot be adjustedMichael Haggerty2014-10-011-0/+1
* rollback_lock_file(): set fd to -1Michael Haggerty2014-10-011-2/+1
* rollback_lock_file(): exit early if lock is not activeMichael Haggerty2014-10-011-6/+7
* rollback_lock_file(): do not clear filename redundantlyMichael Haggerty2014-10-011-1/+1
* close_lock_file(): exit (successfully) if file is already closedMichael Haggerty2014-10-011-1/+5
* unable_to_lock_die(): rename function from unable_to_lock_index_die()Michael Haggerty2014-10-011-3/+3
* Merge branch 'jc/reopen-lock-file'Junio C Hamano2014-09-021-0/+10
|\
| * lockfile: allow reopening a closed but still locked filejc/reopen-lock-fileJunio C Hamano2014-07-141-0/+10
* | Merge branch 'rs/ref-transaction-0'Junio C Hamano2014-07-211-15/+24
|\ \ | |/ |/|
| * lockfile.c: make lock_file return a meaningful errno on failureiRonnie Sahlberg2014-07-141-5/+12
| * lockfile.c: add a new public function unable_to_lock_messageRonnie Sahlberg2014-07-141-10/+12
* | read-cache: relocate and unexport commit_locked_index()Nguyễn Thái Ngọc Duy2014-06-131-20/+0
|/
* lockfile: fix buffer overflow in path handlingMichael Haggerty2013-07-071-4/+6
* Name make_*_path functions more accuratelyCarlos Martín Nieto2011-03-171-2/+2
* lockfile: show absolute filename in unable_to_lock_messageMatthieu Moy2010-01-121-2/+3
* git branch -D: give a better error message when lockfile creation failsMiklos Vajna2009-09-291-6/+20
* Merge branch 'ar/unlink-err'Junio C Hamano2009-05-181-2/+2
|\
| * replace direct calls to unlink(2) with unlink_or_warnAlex Riesen2009-04-291-2/+2
* | Fix a bunch of pointer declarations (codestyle)Felipe Contreras2009-05-011-1/+1
|/
* Make the 'lock file' exists error more informativeJohn Tapsell2009-03-041-2/+2
* Merge branch 'maint'Junio C Hamano2009-02-191-1/+15
|\
| * More friendly message when locking the index fails.Matthieu Moy2009-02-191-1/+15
* | refactor signal handling for cleanup functionsJeff King2009-01-211-5/+1
* | chain kill signals for cleanup functionsJeff King2009-01-211-6/+7
|/
* Make sure lockfiles are unlocked when dying on SIGPIPEJunio C Hamano2008-12-211-0/+1
* Enhance hold_lock_file_for_{update,append}() APIJunio C Hamano2008-10-191-12/+17
* rollback lock files on more signals than just SIGINTPaolo Bonzini2008-05-311-0/+3
* Merge branch 'db/clone-in-c'Junio C Hamano2008-05-251-0/+28
|\
| * Add a lockfile function to append to a fileDaniel Barkalow2008-05-041-0/+28