Skip to content

Commit bbea0dd

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d01301 commit bbea0dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

object-file.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,8 @@ static int index_mem(struct index_state *istate,
21182118
enum object_type type,
21192119
const char *path, unsigned flags)
21202120
{
2121-
int ret, re_allocated = 0;
2121+
int ret;
2122+
int re_allocated = 0;
21222123
int write_object = flags & HASH_WRITE_OBJECT;
21232124

21242125
if (!type)

0 commit comments

Comments
 (0)