summaryrefslogtreecommitdiff
path: root/lockfile.c
Commit message (Expand)AuthorAgeFilesLines
* lockfile.c: store absolute pathnd/lockfile-absoluteNguyễn Thái Ngọc Duy2014-11-031-3/+11
* lockfile: remove unable_to_lock_errorJonathan Nieder2014-10-151-10/+0
* Merge branch 'mh/lockfile-stdio'Junio C Hamano2014-10-141-5/+41
|\
| * fdopen_lock_file(): access a lockfile using stdioMichael Haggerty2014-10-011-5/+41
* | Merge branch 'mh/lockfile'Junio C Hamano2014-10-141-131/+153
|\ \ | |/
| * lockfile.h: extract new header file for the functions in lockfile.cmh/lockfileMichael Haggerty2014-10-011-51/+1
| * hold_locked_index(): move from lockfile.c to read-cache.cMichael Haggerty2014-10-011-8/+0
| * hold_lock_file_for_append(): restore errno before returningMichael Haggerty2014-10-011-1/+8
| * 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 'sp/stream-clean-filter'Junio C Hamano2014-10-081-0/+3
|\ \ | |/ |/|
| * copy_fd(): do not close the input file descriptorSteffen Prohaska2014-08-281-0/+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
|/