summaryrefslogtreecommitdiff
path: root/commit-graph.h
diff options
context:
space:
mode:
authorZheNing Hu <adlternative@gmail.com>2022-06-05 13:37:28 +0000
committerJunio C Hamano <gitster@pobox.com>2022-06-06 10:37:06 -0700
commit6d858341d284e08320dc2dbf1952d7a37884e5f3 (patch)
tree81136cc0519ccfad66038e36ad96e2c31b406977 /commit-graph.h
parente54793a95afeea1e10de1e5ad7eab914e7416250 (diff)
read-cache.c: reduce unnecessary cache entry name copying
575fa8a3 (read-cache: read data in a hash-independent way, 2019-02-19) added a new code to copy from the on-disk data into the name member of the in-core cache entry, which is already done immediately after that in a way that takes prefix-compression into account. Remove this code, as it is not just unnecessary, but also can be reading beyond the on-disk data, when we are copying very long prefix string from the previous entry. Signed-off-by: ZheNing Hu <adlternative@gmail.com> [jc: rewrote the log message with Réne's findings] Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.h')
0 files changed, 0 insertions, 0 deletions