lock_file 229 builtin/add.c static struct lock_file lock_file; lock_file 342 builtin/add.c hold_locked_index(&lock_file, 1); lock_file 438 builtin/add.c if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) lock_file 1146 builtin/am.c struct lock_file *lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 1148 builtin/am.c hold_locked_index(lock_file, 1); lock_file 1150 builtin/am.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 1989 builtin/am.c struct lock_file *lock_file; lock_file 1996 builtin/am.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 1997 builtin/am.c hold_locked_index(lock_file, 1); lock_file 2013 builtin/am.c rollback_lock_file(lock_file); lock_file 2017 builtin/am.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 2029 builtin/am.c struct lock_file *lock_file; lock_file 2036 builtin/am.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 2037 builtin/am.c hold_locked_index(lock_file, 1); lock_file 2048 builtin/am.c rollback_lock_file(lock_file); lock_file 2052 builtin/am.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 3876 builtin/apply.c static struct lock_file lock; lock_file 4357 builtin/apply.c static struct lock_file lock_file; lock_file 4404 builtin/apply.c newfd = hold_locked_index(&lock_file, 1); lock_file 4677 builtin/apply.c if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) lock_file 130 builtin/checkout-index.c static struct lock_file lock_file; lock_file 140 builtin/checkout-index.c *newfd = hold_locked_index(&lock_file, 1); lock_file 235 builtin/checkout-index.c rollback_lock_file(&lock_file); lock_file 281 builtin/checkout-index.c write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) lock_file 247 builtin/checkout.c struct lock_file *lock_file; lock_file 275 builtin/checkout.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 277 builtin/checkout.c hold_locked_index(lock_file, 1); lock_file 374 builtin/checkout.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 469 builtin/checkout.c struct lock_file *lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 471 builtin/checkout.c hold_locked_index(lock_file, 1); lock_file 585 builtin/checkout.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 677 builtin/clone.c struct lock_file *lock_file; lock_file 704 builtin/clone.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 705 builtin/clone.c hold_locked_index(lock_file, 1); lock_file 721 builtin/clone.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 96 builtin/commit.c static struct lock_file index_lock; /* real index */ lock_file 97 builtin/commit.c static struct lock_file false_lock; /* used only for partial commits */ lock_file 460 builtin/describe.c static struct lock_file index_lock; lock_file 208 builtin/diff.c struct lock_file *lock_file; lock_file 211 builtin/diff.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 212 builtin/diff.c fd = hold_locked_index(lock_file, 0); lock_file 218 builtin/diff.c update_index_if_able(&the_index, lock_file); lock_file 47 builtin/gc.c static struct lock_file log_lock; lock_file 206 builtin/gc.c static struct lock_file lock; lock_file 639 builtin/merge.c static struct lock_file lock; lock_file 61 builtin/mv.c static struct lock_file lock_file; lock_file 128 builtin/mv.c hold_locked_index(&lock_file, 1); lock_file 278 builtin/mv.c write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) lock_file 343 builtin/pull.c struct lock_file *lock_file = xcalloc(1, sizeof(*lock_file)); lock_file 346 builtin/pull.c hold_locked_index(lock_file, 0); lock_file 348 builtin/pull.c update_index_if_able(&the_index, lock_file); lock_file 349 builtin/pull.c rollback_lock_file(lock_file); lock_file 99 builtin/read-tree.c static struct lock_file lock_file; lock_file 153 builtin/read-tree.c hold_locked_index(&lock_file, 1); lock_file 246 builtin/read-tree.c if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) lock_file 733 builtin/receive-pack.c static struct lock_file shallow_lock; lock_file 356 builtin/reset.c struct lock_file *lock = xcalloc(1, sizeof(*lock)); lock_file 262 builtin/rm.c static struct lock_file lock_file; lock_file 295 builtin/rm.c hold_locked_index(&lock_file, 1); lock_file 429 builtin/rm.c if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) lock_file 913 builtin/update-index.c struct lock_file *lock_file; lock_file 1010 builtin/update-index.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 1012 builtin/update-index.c newfd = hold_locked_index(lock_file, 0); lock_file 1136 builtin/update-index.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 1140 builtin/update-index.c rollback_lock_file(lock_file); lock_file 405 bundle.c static struct lock_file lock; lock_file 598 cache-tree.c struct lock_file *lock_file; lock_file 604 cache-tree.c lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 606 cache-tree.c newfd = hold_lock_file_for_update(lock_file, index_path, LOCK_DIE_ON_ERROR); lock_file 622 cache-tree.c if (!write_locked_index(index_state, lock_file, COMMIT_LOCK)) lock_file 644 cache-tree.c rollback_lock_file(lock_file); lock_file 510 cache.h struct lock_file; lock_file 520 cache.h extern int write_locked_index(struct index_state *, struct lock_file *lock, unsigned flags); lock_file 596 cache.h extern void update_index_if_able(struct index_state *, struct lock_file *); lock_file 598 cache.h extern int hold_locked_index(struct lock_file *, int); lock_file 264 commit.h extern void setup_alternate_shallow(struct lock_file *shallow_lock, lock_file 1959 config.c struct lock_file *lock = NULL; lock_file 1978 config.c lock = xcalloc(1, sizeof(struct lock_file)); lock_file 2249 config.c struct lock_file *lock; lock_file 2263 config.c lock = xcalloc(1, sizeof(struct lock_file)); lock_file 7 credential-store.c static struct lock_file credential_lock; lock_file 1801 fast-import.c static struct lock_file mark_lock; lock_file 27 fetch-pack.c static struct lock_file shallow_lock; lock_file 73 lockfile.c static int lock_file(struct lock_file *lk, const char *path, int flags) lock_file 102 lockfile.c static int lock_file_timeout(struct lock_file *lk, const char *path, lock_file 111 lockfile.c return lock_file(lk, path, flags); lock_file 125 lockfile.c fd = lock_file(lk, path, flags); lock_file 171 lockfile.c int hold_lock_file_for_update_timeout(struct lock_file *lk, const char *path, lock_file 180 lockfile.c char *get_locked_file_path(struct lock_file *lk) lock_file 193 lockfile.c int commit_lock_file(struct lock_file *lk) lock_file 153 lockfile.h struct lock_file *lk, const char *path, lock_file 162 lockfile.h struct lock_file *lk, const char *path, lock_file 190 lockfile.h static inline FILE *fdopen_lock_file(struct lock_file *lk, const char *mode) lock_file 199 lockfile.h static inline const char *get_lock_file_path(struct lock_file *lk) lock_file 204 lockfile.h static inline int get_lock_file_fd(struct lock_file *lk) lock_file 209 lockfile.h static inline FILE *get_lock_file_fp(struct lock_file *lk) lock_file 218 lockfile.h extern char *get_locked_file_path(struct lock_file *lk); lock_file 229 lockfile.h static inline int close_lock_file(struct lock_file *lk) lock_file 253 lockfile.h static inline int reopen_lock_file(struct lock_file *lk) lock_file 267 lockfile.h extern int commit_lock_file(struct lock_file *lk); lock_file 273 lockfile.h static inline int commit_lock_file_to(struct lock_file *lk, const char *path) lock_file 284 lockfile.h static inline void rollback_lock_file(struct lock_file *lk) lock_file 2001 merge-recursive.c struct lock_file *lock = xcalloc(1, sizeof(struct lock_file)); lock_file 56 merge.c struct lock_file *lock_file = xcalloc(1, sizeof(struct lock_file)); lock_file 60 merge.c hold_locked_index(lock_file, 1); lock_file 93 merge.c if (write_locked_index(&the_index, lock_file, COMMIT_LOCK)) lock_file 1395 read-cache.c int hold_locked_index(struct lock_file *lk, int die_on_error) lock_file 1961 read-cache.c void update_index_if_able(struct index_state *istate, struct lock_file *lockfile) lock_file 2092 read-cache.c static int commit_locked_index(struct lock_file *lk) lock_file 2100 read-cache.c static int do_write_locked_index(struct index_state *istate, struct lock_file *lock, lock_file 2117 read-cache.c struct lock_file *lock, lock_file 2130 read-cache.c struct lock_file *lock, unsigned flags) lock_file 2153 read-cache.c int write_locked_index(struct index_state *istate, struct lock_file *lock, lock_file 12 refs.c struct lock_file *lk; lock_file 1053 refs.c struct lock_file *lock; lock_file 1076 refs.c static struct lock_file packlock; lock_file 2468 refs.c lock->lk = xcalloc(1, sizeof(struct lock_file)); lock_file 2888 refs.c static struct lock_file lock; lock_file 2929 refs.c static struct lock_file lock; lock_file 4565 refs.c static struct lock_file reflog_lock; lock_file 65 rerere.c static struct lock_file write_lock; lock_file 478 rerere.c static struct lock_file index_lock; lock_file 194 sequencer.c static struct lock_file msg_file; lock_file 284 sequencer.c static struct lock_file index_lock; lock_file 644 sequencer.c static struct lock_file index_lock; lock_file 835 sequencer.c static struct lock_file head_lock; lock_file 913 sequencer.c static struct lock_file todo_lock; lock_file 403 sha1_file.c struct lock_file *lock = xcalloc(1, sizeof(struct lock_file)); lock_file 236 shallow.c void setup_alternate_shallow(struct lock_file *shallow_lock, lock_file 281 shallow.c static struct lock_file shallow_lock; lock_file 6 test-scrap-cache-tree.c static struct lock_file index_lock;