From patchwork Tue Feb 1 14:53:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= X-Patchwork-Id: 12731776 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B19D9C433EF for ; Tue, 1 Feb 2022 14:53:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239491AbiBAOxU (ORCPT ); Tue, 1 Feb 2022 09:53:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239476AbiBAOxT (ORCPT ); Tue, 1 Feb 2022 09:53:19 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC94CC061714 for ; Tue, 1 Feb 2022 06:53:18 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id r7so12921019wmq.5 for ; Tue, 01 Feb 2022 06:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7AcYF0+j1hmE5qBBW921HkVedgxOdja8BA5zu4q8/PU=; b=HiUcpf9YR58qMBl5fD17S0IRPJOCB7EYxc5iZd2lGz4UI1GQbigHAQPzVz1kiWoE9j v6wJ6R4qP/myqUPuQtOqonH43S33kgXhJw4WTj1peT2+A1xHjjCDnD+KI9IXi4xZh/WZ W7rykujvwugiJYRbUA5azILK9TwQMdJS3cATsyueB9gYNPkq/diwuwhN4gPgGyB5vIq+ kcqaDY9uoVreJ0zVYZTlMmxqlyKtjXHGozOboEWrYii6PwOS3IsNqbOmMQLwSCEqLj1U xag8DQHebviBYw29U1at+nbOXuzikC1tSaHUGFns8pMQdVjxW/4Cx/4Uu1Z4EK+qEoK4 OrzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7AcYF0+j1hmE5qBBW921HkVedgxOdja8BA5zu4q8/PU=; b=q/HR3OUpMP4lC4XFaxdZiNBgLmPIU/livT9yrHEJpZ3OOFnm2m/02seWA2TFhlu6SG fFquWTqiLctlEs260++2DwXIXXgyho0MGsYq5eCRM58U8I6Nz6BBVN1o4y5Jye/lzRKC J4RCEFHZw86Mz+BDMwLKgpEC8kG+oCxzI5jx35cyJ9NMkONsUghDnXcoTIpDDmBOUhf5 1CJPF+i5QL/0QMjUVgnHRBTwNyZS/jIWBdnO7cY/cB1/PcZ+Ko5AIlqvo0vY9mdpn9nN hB31qlQIIafRAIF0GwYcIrFdc8R3D64Q9ZMATgcaiZF8kQbFOhWw/V0jXH7NV7C4EIhE cMnw== X-Gm-Message-State: AOAM531dgDWivPjD4ixNm5Gr42iTvsJ/kGEr+HQzIaHxwTzCwSpa/9O7 KkuMZkgIZ1RgdUMYyDrNbRNZlkEvdMgLgQ== X-Google-Smtp-Source: ABdhPJxgC5ofyh48G4KSHKJmKK+jYdA6A7z43cM0utF3nCrj50nroVFJt1YnxnIo32iMMExi9QZmLA== X-Received: by 2002:a1c:a754:: with SMTP id q81mr2163773wme.180.1643727197239; Tue, 01 Feb 2022 06:53:17 -0800 (PST) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id bg17sm2492054wmb.2.2022.02.01.06.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 06:53:16 -0800 (PST) From: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= To: git@vger.kernel.org Cc: Junio C Hamano , Han Xin , Jiang Xin , =?utf-8?q?Ren=C3=A9_Scharfe?= , Derrick Stolee , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFy?= =?utf-8?b?bWFzb24=?= Subject: [PATCH 01/10] object-file.c: split up declaration of unrelated variables Date: Tue, 1 Feb 2022 15:53:03 +0100 Message-Id: X-Mailer: git-send-email 2.35.0.913.g12b4baa2536 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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 --- object-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/object-file.c b/object-file.c index 8be57f48de7..ecc77973292 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)