summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorLibravatar Martin Ågren <martin.agren@gmail.com>2021-01-05 20:23:50 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-06 13:53:32 -0800
commit6a8c89d053059b97adb846fce1d22f6d7704c56a (patch)
tree23adac2b7b5ceaa22a2105eaef7d5b3472a09085 /diffcore-rename.c
parentrefs/files-backend: don't peek into `struct lock_file` (diff)
downloadtgif-6a8c89d053059b97adb846fce1d22f6d7704c56a.tar.xz
read-cache: try not to peek into `struct {lock_,temp}file`
Similar to the previous commits, try to avoid peeking into the `struct lock_file`. We also have some `struct tempfile`s -- let's avoid looking into those as well. Note that `do_write_index()` takes a tempfile and that when we call it, we either have a tempfile which we can easily hand down, or we have a lock file, from which we need to somehow obtain the internal tempfile. So we need to leave that one instance of peeking-into. Nevertheless, this commit leaves us not relying on exactly how the path of the tempfile / lock file is stored internally. 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 'diffcore-rename.c')
0 files changed, 0 insertions, 0 deletions