]> git.ipfire.org Git - thirdparty/git.git/commitdiff
object-file.c: split up declaration of unrelated variables
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 4 Feb 2022 23:48:23 +0000 (00:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Feb 2022 01:16:31 +0000 (17:16 -0800)
Split up the declaration of the "ret" and "re_allocated"
variables. It's not our usual style to group variable declarations
simply because they share a type, we'd only prefer to do so when the
two are closely related (e.g. "int i, j"). This change makes a
subsequent and meaningful change's diff smaller.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c

index 8be57f48de738a7f61de8b18e10a41e2007ac045..ecc77973292df6f03844b454252a959d494fc279 100644 (file)
@@ -2118,7 +2118,8 @@ static int index_mem(struct index_state *istate,
                     enum object_type type,
                     const char *path, unsigned flags)
 {
-       int ret, re_allocated = 0;
+       int ret;
+       int re_allocated = 0;
        int write_object = flags & HASH_WRITE_OBJECT;
 
        if (!type)