summaryrefslogtreecommitdiffstats
path: root/lockfile.c (follow)
Commit message (Expand)AuthorAgeLines
* lockfile.c: introduce 'hold_lock_file_for_update_mode'Taylor Blau2020-04-27-8/+10
* Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin2018-05-06-1/+1
* tempfile: auto-allocate tempfiles on heapJeff King2017-09-06-4/+3
* lockfile: LOCK_REPORT_ON_ERRORJunio C Hamano2016-12-07-2/+10
* lockfile: improve error message when lockfile existsMatthieu Moy2016-03-01-3/+5
* lockfile: mark strings for translationMatthieu Moy2016-03-01-3/+3
* lockfile: remove function "hold_lock_file_for_append"Ralf Thielow2015-08-28-38/+0
* Merge branch 'mh/tempfile'Junio C Hamano2015-08-25-182/+23
|\
| * tempfile: a new module for handling temporary filesMichael Haggerty2015-08-10-245/+16
| * commit_lock_file(): use get_locked_file_path()Michael Haggerty2015-08-10-16/+12
| * lockfile: add accessor get_lock_file_path()Michael Haggerty2015-08-10-0/+7
| * lockfile: add accessors get_lock_file_fd() and get_lock_file_fp()Michael Haggerty2015-08-10-0/+14
| * lockfile: move documentation to lockfile.h and lockfile.cMichael Haggerty2015-08-10-0/+53
* | Merge branch 'js/sleep-without-select'Junio C Hamano2015-06-24-22/+9
|\ \ | |/ |/|
| * lockfile: wait using sleep_millisec() instead of select()Johannes Sixt2015-06-05-9/+1
| * lockfile: convert retry timeout computations to millisecondJohannes Sixt2015-06-05-13/+8
| * lockfile: replace random() by rand()Johannes Sixt2015-06-05-2/+2
* | Merge branch 'jc/ignore-epipe-in-filter'Junio C Hamano2015-05-22-1/+1
|\ \ | |/ |/|
| * copy.c: make copy_fd() report its status silentlyJunio C Hamano2015-05-19-1/+1
* | lockfile: allow file locking to be retried with a timeoutMichael Haggerty2015-05-14-2/+77
* | lockfile.c: store absolute pathNguyễn Thái Ngọc Duy2014-11-03-3/+11
|/
* lockfile: remove unable_to_lock_errorJonathan Nieder2014-10-15-10/+0
* Merge branch 'mh/lockfile-stdio'Junio C Hamano2014-10-14-5/+41
|\
| * fdopen_lock_file(): access a lockfile using stdioMichael Haggerty2014-10-01-5/+41
* | Merge branch 'mh/lockfile'Junio C Hamano2014-10-14-131/+153
|\|
| * lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty2014-10-01-51/+1
| * hold_locked_index(): move from lockfile.c to read-cache.cMichael Haggerty2014-10-01-8/+0
| * hold_lock_file_for_append(): restore errno before returningMichael Haggerty2014-10-01-1/+8
| * get_locked_file_path(): new functionMichael Haggerty2014-10-01-0/+9
| * lockfile.c: rename static functionsMichael Haggerty2014-10-01-5/+5
| * lockfile: rename LOCK_NODEREF to LOCK_NO_DEREFMichael Haggerty2014-10-01-1/+1
| * commit_lock_file_to(): refactor a helper out of commit_lock_file()Michael Haggerty2014-10-01-14/+26
| * trim_last_path_component(): replace last_path_elm()Michael Haggerty2014-10-01-22/+16
| * resolve_symlink(): take a strbuf parameterMichael Haggerty2014-10-01-35/+22
| * resolve_symlink(): use a strbuf for internal scratch spaceMichael Haggerty2014-10-01-21/+12
| * lockfile: change lock_file::filename into a strbufMichael Haggerty2014-10-01-29/+24
| * commit_lock_file(): use a strbuf to manage temporary spaceMichael Haggerty2014-10-01-5/+7
| * struct lock_file: declare some fields volatileMichael Haggerty2014-10-01-1/+1
| * lockfile: avoid transitory invalid statesMichael Haggerty2014-10-01-11/+26
| * commit_lock_file(): rollback lock file on failure to renameMichael Haggerty2014-10-01-1/+6
| * close_lock_file(): if close fails, roll backMichael Haggerty2014-10-01-10/+18
| * commit_lock_file(): die() if called for unlocked lockfile objectMichael Haggerty2014-10-01-0/+3
| * commit_lock_file(): inline temporary variableMichael Haggerty2014-10-01-3/+5
| * remove_lock_file(): call rollback_lock_file()Michael Haggerty2014-10-01-6/+2
| * lock_file(): exit early if lockfile cannot be openedMichael Haggerty2014-10-01-12/+11
| * cache.h: define constants LOCK_SUFFIX and LOCK_SUFFIX_LENMichael Haggerty2014-10-01-5/+6
| * lockfile.c: document the various states of lock_file objectsMichael Haggerty2014-10-01-0/+42
| * lock_file(): always initialize and register lock_file objectMichael Haggerty2014-10-01-9/+16
| * hold_lock_file_for_append(): release lock on errorsMichael Haggerty2014-10-01-2/+2
| * lockfile: unlock file if lockfile permissions cannot be adjustedMichael Haggerty2014-10-01-0/+1