]> git.99rst.org Git - git.git/commit
{reset,merge}: call discard_index() before returning
authorÆvar Arnfjörð Bjarmason <redacted>
Tue, 8 Nov 2022 18:17:38 +0000 (19:17 +0100)
committerJunio C Hamano <redacted>
Mon, 21 Nov 2022 03:32:48 +0000 (12:32 +0900)
commitab2cf37183eb461f1a5176a4d58650e7c8f642eb
treedd6f43dc50e1fbfd44a49367d6d44b67c8aa6293
parente5e37517dd961b70250107f565539950fea94e76
{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 <redacted>
Signed-off-by: Taylor Blau <redacted>
builtin/merge.c
builtin/reset.c
git clone https://git.99rst.org/PROJECT