diff options
author | Martin Ågren <martin.agren@gmail.com> | 2021-01-05 20:23:49 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-06 13:53:32 -0800 |
commit | 7f0dc7998be01371c99517dc616421239405476c (patch) | |
tree | f0a60433b2ac50b4be8860490323a7f5f12fa3b5 /notes-merge.h | |
parent | midx: don't peek into `struct lock_file` (diff) | |
download | tgif-7f0dc7998be01371c99517dc616421239405476c.tar.xz |
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>
Diffstat (limited to 'notes-merge.h')
0 files changed, 0 insertions, 0 deletions