]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/commit.c
commit: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:45 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:06 +0000 (13:47 -0700)
commitcb8388df5b3252802a0149ca558f99307e42074c
tree983f69d0eebc105adae45f73d0b803ba2e2e1225
parent0f6d3ba6bd795b09bf216c267bbf6e3ec2409d1e
commit: ensure full index

These two loops iterate over all cache entries, so ensure that a sparse
index is expanded to a full index before we do so.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c