object-file.c: split up declaration of unrelated variables
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>
Ævar Arnfjörð Bjarmason committed
Feb 5, 2022 at 00:48 UTC
bbea0ddeb9bd9eefe568a9f4456cccf630704d8c
1 file changed
+2
-1
object-file.c
+2
-1
@@ -2118,7 +2118,8 @@ static int index_mem(struct index_state *istate,
2118
enum object_type type,
2119
const char *path, unsigned flags)
2120
{
2121
- int ret, re_allocated = 0;
2121
+ int ret;
2122
+ int re_allocated = 0;
2123
int write_object = flags & HASH_WRITE_OBJECT;
2124
2125
if (!type)