Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-02-05 02:48:23 +0300
committerJunio C Hamano <gitster@pobox.com>2022-02-26 04:16:31 +0300
commitbbea0ddeb9bd9eefe568a9f4456cccf630704d8c (patch)
tree24714cc470ac808da1a3119d6d3aa85f9063cf44 /object-file.c
parent5d01301f2b865aa8dba1654d3f447ce9d21db0b5 (diff)
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>
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c
index 8be57f48de..ecc7797329 100644
--- a/object-file.c
+++ b/object-file.c
@@ -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)