aboutsummaryrefslogtreecommitdiffstats
path: root/lockfile.c
AgeCommit message (Expand)AuthorFilesLines
2023-03-21treewide: remove unnecessary includes of cache.hElijah Newren1-1/+1
2023-03-21abspath.h: move absolute path functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2020-04-27lockfile.c: introduce 'hold_lock_file_for_update_mode'Taylor Blau1-8/+10
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2017-09-06tempfile: auto-allocate tempfiles on heapJeff King1-4/+3
2016-12-07lockfile: LOCK_REPORT_ON_ERRORJunio C Hamano1-2/+10
2016-03-01lockfile: improve error message when lockfile existsMatthieu Moy1-3/+5
2016-03-01lockfile: mark strings for translationMatthieu Moy1-3/+3
2015-08-28lockfile: remove function "hold_lock_file_for_append"Ralf Thielow1-38/+0
2015-08-25Merge branch 'mh/tempfile'Junio C Hamano1-182/+23
2015-08-10tempfile: a new module for handling temporary filesMichael Haggerty1-245/+16
2015-08-10commit_lock_file(): use get_locked_file_path()Michael Haggerty1-16/+12
2015-08-10lockfile: add accessor get_lock_file_path()Michael Haggerty1-0/+7
2015-08-10lockfile: add accessors get_lock_file_fd() and get_lock_file_fp()Michael Haggerty1-0/+14
2015-08-10lockfile: move documentation to lockfile.h and lockfile.cMichael Haggerty1-0/+53
2015-06-24Merge branch 'js/sleep-without-select'Junio C Hamano1-22/+9
2015-06-05lockfile: wait using sleep_millisec() instead of select()Johannes Sixt1-9/+1
2015-06-05lockfile: convert retry timeout computations to millisecondJohannes Sixt1-13/+8
2015-06-05lockfile: replace random() by rand()Johannes Sixt1-2/+2
2015-05-22Merge branch 'jc/ignore-epipe-in-filter'Junio C Hamano1-1/+1
2015-05-19copy.c: make copy_fd() report its status silentlyJunio C Hamano1-1/+1
2015-05-14lockfile: allow file locking to be retried with a timeoutMichael Haggerty1-2/+77
2014-11-03lockfile.c: store absolute pathNguyễn Thái Ngọc Duy1-3/+11
2014-10-15lockfile: remove unable_to_lock_errorJonathan Nieder1-10/+0
2014-10-14Merge branch 'mh/lockfile-stdio'Junio C Hamano1-5/+41
2014-10-14Merge branch 'mh/lockfile'Junio C Hamano1-131/+153
2014-10-08Merge branch 'sp/stream-clean-filter'Junio C Hamano1-0/+3
2014-10-01fdopen_lock_file(): access a lockfile using stdioMichael Haggerty1-5/+41
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-51/+1
2014-10-01hold_locked_index(): move from lockfile.c to read-cache.cMichael Haggerty1-8/+0
2014-10-01hold_lock_file_for_append(): restore errno before returningMichael Haggerty1-1/+8
2014-10-01get_locked_file_path(): new functionMichael Haggerty1-0/+9
2014-10-01lockfile.c: rename static functionsMichael Haggerty1-5/+5
2014-10-01lockfile: rename LOCK_NODEREF to LOCK_NO_DEREFMichael Haggerty1-1/+1
2014-10-01commit_lock_file_to(): refactor a helper out of commit_lock_file()Michael Haggerty1-14/+26
2014-10-01trim_last_path_component(): replace last_path_elm()Michael Haggerty1-22/+16
2014-10-01resolve_symlink(): take a strbuf parameterMichael Haggerty1-35/+22
2014-10-01resolve_symlink(): use a strbuf for internal scratch spaceMichael Haggerty1-21/+12
2014-10-01lockfile: change lock_file::filename into a strbufMichael Haggerty1-29/+24
2014-10-01commit_lock_file(): use a strbuf to manage temporary spaceMichael Haggerty1-5/+7
2014-10-01struct lock_file: declare some fields volatileMichael Haggerty1-1/+1
2014-10-01lockfile: avoid transitory invalid statesMichael Haggerty1-11/+26
2014-10-01commit_lock_file(): rollback lock file on failure to renameMichael Haggerty1-1/+6
2014-10-01close_lock_file(): if close fails, roll backMichael Haggerty1-10/+18
2014-10-01commit_lock_file(): die() if called for unlocked lockfile objectMichael Haggerty1-0/+3
2014-10-01commit_lock_file(): inline temporary variableMichael Haggerty1-3/+5
2014-10-01remove_lock_file(): call rollback_lock_file()Michael Haggerty1-6/+2
2014-10-01lock_file(): exit early if lockfile cannot be openedMichael Haggerty1-12/+11
2014-10-01cache.h: define constants LOCK_SUFFIX and LOCK_SUFFIX_LENMichael Haggerty1-5/+6
2014-10-01lockfile.c: document the various states of lock_file objectsMichael Haggerty1-0/+42
2014-10-01lock_file(): always initialize and register lock_file objectMichael Haggerty1-9/+16
2014-10-01hold_lock_file_for_append(): release lock on errorsMichael Haggerty1-2/+2
2014-10-01lockfile: unlock file if lockfile permissions cannot be adjustedMichael Haggerty1-0/+1
2014-10-01rollback_lock_file(): set fd to -1Michael Haggerty1-2/+1
2014-10-01rollback_lock_file(): exit early if lock is not activeMichael Haggerty1-6/+7
2014-10-01rollback_lock_file(): do not clear filename redundantlyMichael Haggerty1-1/+1
2014-10-01close_lock_file(): exit (successfully) if file is already closedMichael Haggerty1-1/+5
2014-10-01unable_to_lock_die(): rename function from unable_to_lock_index_die()Michael Haggerty1-3/+3
2014-09-02Merge branch 'jc/reopen-lock-file'Junio C Hamano1-0/+10
2014-08-28copy_fd(): do not close the input file descriptorSteffen Prohaska1-0/+3
2014-07-21Merge branch 'rs/ref-transaction-0'Junio C Hamano1-15/+24
2014-07-14lockfile: allow reopening a closed but still locked fileJunio C Hamano1-0/+10
2014-07-14lockfile.c: make lock_file return a meaningful errno on failureiRonnie Sahlberg1-5/+12
2014-07-14lockfile.c: add a new public function unable_to_lock_messageRonnie Sahlberg1-10/+12
2014-06-13read-cache: relocate and unexport commit_locked_index()Nguyễn Thái Ngọc Duy1-20/+0
2013-07-07lockfile: fix buffer overflow in path handlingMichael Haggerty1-4/+6
2011-03-17Name make_*_path functions more accuratelyCarlos Martín Nieto1-2/+2
2010-01-12lockfile: show absolute filename in unable_to_lock_messageMatthieu Moy1-2/+3
2009-09-29git branch -D: give a better error message when lockfile creation failsMiklos Vajna1-6/+20
2009-05-18Merge branch 'ar/unlink-err'Junio C Hamano1-2/+2
2009-05-01Fix a bunch of pointer declarations (codestyle)Felipe Contreras1-1/+1
2009-04-29replace direct calls to unlink(2) with unlink_or_warnAlex Riesen1-2/+2
2009-03-04Make the 'lock file' exists error more informativeJohn Tapsell1-2/+2
2009-02-19Merge branch 'maint'Junio C Hamano1-1/+15
2009-02-19More friendly message when locking the index fails.Matthieu Moy1-1/+15
2009-01-21refactor signal handling for cleanup functionsJeff King1-5/+1
2009-01-21chain kill signals for cleanup functionsJeff King1-6/+7
2008-12-21Make sure lockfiles are unlocked when dying on SIGPIPEJunio C Hamano1-0/+1
2008-10-19Enhance hold_lock_file_for_{update,append}() APIJunio C Hamano1-12/+17
2008-05-31rollback lock files on more signals than just SIGINTPaolo Bonzini1-0/+3
2008-05-25Merge branch 'db/clone-in-c'Junio C Hamano1-0/+28
2008-05-25Reset the signal being handledClemens Buchacher1-1/+1
2008-05-04Add a lockfile function to append to a fileDaniel Barkalow1-0/+28
2008-01-16close_lock_file(): new function in the lockfile APIBrandon Casey1-8/+22
2007-11-26Use is_absolute_path() in diff-lib.c, lockfile.c, setup.c, trace.cSteffen Prohaska1-1/+1
2007-11-14Close files opened by lock_file() before unlinking.Johannes Schindelin1-7/+10
2007-07-27fully resolve symlinks when creating lockfilesBradford C. Smith1-14/+102
2007-07-25When locking in a symlinked repository, try to lock the original.Junio C Hamano1-0/+13
2007-07-13lockfile.c: schedule remove_lock_file only once.Sven Verdoolaege1-4/+4
2007-06-07War on whitespaceJunio C Hamano1-1/+0
2007-04-21lockfile: record the primary process.Junio C Hamano1-1/+5
2007-04-03git-read-tree --index-output=<file>Junio C Hamano1-3/+8
2007-04-03_GIT_INDEX_OUTPUT: allow plumbing to output to an alternative index file.Junio C Hamano1-0/+17
2007-01-06Print a more accurate error message when we fail to create a lock file.Steven Grimm1-1/+1
2007-01-04Merge branch 'maint'Junio C Hamano1-1/+6
2007-01-03Fix infinite loop when deleting multiple packed refs.Junio C Hamano1-1/+6
2006-12-20simplify inclusion of system header files.Junio C Hamano1-1/+0
2006-08-12Better error message when we are unable to lock the index fileJunio C Hamano1-1/+9
2006-06-09shared repository - add a few missing calls to adjust_shared_perm().Junio C Hamano1-5/+10
2006-06-06Make index file locking code reusable to others.Junio C Hamano1-0/+57