git/refs
Martin Ågren 7f0dc7998b refs/files-backend: don't peek into struct lock_file
Similar to the previous commits, avoid peeking into the `struct
lock_file`. Use the lock file API instead. Note how we obtain the path
to the lock file if `fdopen_lock_file()` failed and that this is not a
problem: as documented in lockfile.h, failure to "fdopen" does not roll
back the lock file and we're free to, e.g., query it for its path.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-01-06 13:53:32 -08:00
..
debug.c refs: add GIT_TRACE_REFS debugging mechanism 2020-09-09 12:58:37 -07:00
files-backend.c refs/files-backend: don't peek into struct lock_file 2021-01-06 13:53:32 -08:00
iterator.c
packed-backend.c refs: move gitdir into base ref_store 2020-08-19 14:08:04 -07:00
packed-backend.h
ref-cache.c
ref-cache.h
refs-internal.h Merge branch 'hn/refs-trace-backend' 2020-09-22 12:36:28 -07:00