diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-01-11 11:06:43 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-01-11 12:10:59 -0800 |
| commit | c5b5d5fbbc43364a3d3c0aedf9e984a0ffe04537 (patch) | |
| tree | a55aaae4e5ab4f463b6ca3c95f4fbc1a7248f0dd /builtin/commit.c | |
| parent | reftable/stack: refactor stack reloading to have common exit path (diff) | |
| download | git-c5b5d5fbbc43364a3d3c0aedf9e984a0ffe04537.tar.gz git-c5b5d5fbbc43364a3d3c0aedf9e984a0ffe04537.zip | |
reftable/stack: refactor reloading to use file descriptor
We're about to introduce a stat(3P)-based caching mechanism to reload
the list of stacks only when it has changed. In order to avoid race
conditions this requires us to have a file descriptor available that we
can use to call fstat(3P) on.
Prepare for this by converting the code to use `fd_read_lines()` so that
we have the file descriptor readily available.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
