diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-01-23 19:58:11 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-23 17:14:07 -0800 |
commit | fb0882648e0d624f825974aa7030e56daf6de2af (patch) | |
tree | 3d026aafbb71ed1b7b402fc0037cdcebb2df6369 /.tsan-suppressions | |
parent | cache-tree: speed up consecutive path comparisons (diff) | |
download | tgif-fb0882648e0d624f825974aa7030e56daf6de2af.tar.xz |
cache-tree: clean up cache_tree_update()
Make the method safer by allocating a cache_tree member for the given
index_state if it is not already present. This is preferrable to a
BUG() statement or returning with an error because future callers will
want to populate an empty cache-tree using this method.
Callers can also remove their conditional allocations of cache_tree.
Also drop local variables that can be found directly from the 'istate'
parameter.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '.tsan-suppressions')
0 files changed, 0 insertions, 0 deletions