]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
cache-tree: use ce_namelen() instead of strlen()
authorRené Scharfe <l.s.r@web.de>
Thu, 7 Jan 2021 16:32:10 +0000 (16:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Jan 2021 07:05:13 +0000 (23:05 -0800)
commit0b72536a0b6128d2bfd05d633cd2228d7515b53d
treef55cd47b6c05eb9650b80bb08463eb563b1c3d7d
parent4bdde337f40c089fea8e076eb00132fc093ca79e
cache-tree: use ce_namelen() instead of strlen()

Use the name length field of cache entries instead of calculating its
value anew.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c