summaryrefslogtreecommitdiff
path: root/lockfile.c
Commit message (Expand)AuthorAgeFilesLines
* treewide: remove unnecessary includes of cache.hElijah Newren2023-03-211-1/+1
* abspath.h: move absolute path functions from cache.hElijah Newren2023-03-211-0/+1
* treewide: be explicit about dependence on gettext.hElijah Newren2023-03-211-0/+1
* lockfile.c: introduce 'hold_lock_file_for_update_mode'Taylor Blau2020-04-271-8/+10
* Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin2018-05-061-1/+1
* tempfile: auto-allocate tempfiles on heapJeff King2017-09-061-4/+3
* lockfile: LOCK_REPORT_ON_ERRORJunio C Hamano2016-12-071-2/+10
* lockfile: improve error message when lockfile existsmm/lockfile-error-messageMatthieu Moy2016-03-011-3/+5
* lockfile: mark strings for translationMatthieu Moy2016-03-011-3/+3
* lockfile: remove function "hold_lock_file_for_append"rt/remove-hold-lockfile-for-appendRalf Thielow2015-08-281-38/+0
* Merge branch 'mh/tempfile'Junio C Hamano2015-08-251-182/+23
|\
| * tempfile: a new module for handling temporary filesMichael Haggerty2015-08-101-245/+16
| * commit_lock_file(): use get_locked_file_path()Michael Haggerty2015-08-101-16/+12
| * lockfile: add accessor get_lock_file_path()Michael Haggerty2015-08-101-0/+7
| * lockfile: add accessors get_lock_file_fd() and get_lock_file_fp()Michael Haggerty2015-08-101-0/+14
| * lockfile: move documentation to lockfile.h and lockfile.cMichael Haggerty2015-08-101-0/+53
* | Merge branch 'js/sleep-without-select'Junio C Hamano2015-06-241-22/+9
|\ \ | |/ |/|
| * lockfile: wait using sleep_millisec() instead of select()js/sleep-without-selectJohannes Sixt2015-06-051-9/+1
| * lockfile: convert retry timeout computations to millisecondJohannes Sixt2015-06-051-13/+8
| * lockfile: replace random() by rand()Johannes Sixt2015-06-051-2/+2
* | Merge branch 'jc/ignore-epipe-in-filter'Junio C Hamano2015-05-221-1/+1
|\ \ | |/ |/|
| * copy.c: make copy_fd() report its status silentlyJunio C Hamano2015-05-191-1/+1
* | lockfile: allow file locking to be retried with a timeoutMichael Haggerty2015-05-141-2/+77
* | 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