summaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-08 19:17:38 +0100
committerJunio C Hamano <gitster@pobox.com>2022-11-21 04:32:48 +0100
commitab2cf37183eb461f1a5176a4d58650e7c8f642eb (patch)
treedd6f43dc50e1fbfd44a49367d6d44b67c8aa6293 /builtin/commit.c
parenttests: mark tests as passing with SANITIZE=leak (diff)
downloadgit-ab2cf37183eb461f1a5176a4d58650e7c8f642eb.tar.xz
git-ab2cf37183eb461f1a5176a4d58650e7c8f642eb.zip
{reset,merge}: call discard_index() before returning
These two built-ins both deal with the index, but weren't discarding it. In subsequent commits we'll add more free()-ing to discard_index() that we've missed, but let's first call the existing function. We can doubtless add discard_index() (or its alias discard_cache()) to a lot more places, but let's just add it here for now. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions