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>
This commit is contained in:

committed by
Junio C Hamano

parent
5d01301f2b
commit
bbea0ddeb9
@ -2118,7 +2118,8 @@ static int index_mem(struct index_state *istate,
|
|||||||
enum object_type type,
|
enum object_type type,
|
||||||
const char *path, unsigned flags)
|
const char *path, unsigned flags)
|
||||||
{
|
{
|
||||||
int ret, re_allocated = 0;
|
int ret;
|
||||||
|
int re_allocated = 0;
|
||||||
int write_object = flags & HASH_WRITE_OBJECT;
|
int write_object = flags & HASH_WRITE_OBJECT;
|
||||||
|
|
||||||
if (!type)
|
if (!type)
|
||||||
|
Reference in New Issue
Block a user