From patchwork Thu Nov 22 13:28:21 2018 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: 10694163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A5FDF17FE for ; Thu, 22 Nov 2018 13:28:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 981042BEA9 for ; Thu, 22 Nov 2018 13:28:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BBA72BECA; Thu, 22 Nov 2018 13:28:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 433982BEA9 for ; Thu, 22 Nov 2018 13:28:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436867AbeKWAIH (ORCPT ); Thu, 22 Nov 2018 19:08:07 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45360 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436848AbeKWAIH (ORCPT ); Thu, 22 Nov 2018 19:08:07 -0500 Received: by mail-wr1-f68.google.com with SMTP id v6so9261332wrr.12 for ; Thu, 22 Nov 2018 05:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=txvgHzg9CEoMYFfcKj0P5kWqe+iDVdSisr9a2sY3U4A=; b=tIATKP/M8UjCso5wCj8F4eJ4sNexKnijLKadSVgwPgyPKaBMgsNcT/hIitI8eFG7ZZ Sbx2vHrh3Y01UlTFvMq4r9zCMrKvsn1FSPhyC+EanP2/yGEHY1qCr6VlubcHTeuSIoTm naqGxQuJkFbBSUoNKbimD0fuEEyeewnESLo1wywMwI1Xvrbc7mGMnOiEzFZcV8nqFsMD Gh9qnayuE5Ct/8MEW6ZcwSRytNzCKNlUzwglVHktIKEyr7SthptvHFXCDRz66O2q9VaB frXSJUc//F/Zm+p6bg09nGtuxudISTwnu1TrPumKyrsvokdUMbxblZfsLkpy2blg4xNK Slgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=txvgHzg9CEoMYFfcKj0P5kWqe+iDVdSisr9a2sY3U4A=; b=ljr95W7v1n5M3RC3O40UZiRiRbmYi4sSqKzgf6gdY0t/U0Klgr9YKbSNzkI1+fSqaA h7Jq8K0GANvYTtjFnIYH+OC1+NKykny25GkNbLOIRVZORiw2jdhWzwHq81OgKZeoKmMM OZ3We8azIp+L+Lgccx24KLVQGPDgrpJUf4CfdhuIERs1lsoBGBmjeKBSpgaXIW2R5mDp KCVEt/d7Vvk3Z4KrtiU1vVY0yTxr9Fu+UkuNm6A6Vo8LkOOPcYVSdiNj4av0CTf+CQMP E6ZCIkK4b8amPK5im3m82Ivt9JDySJZoWbg3tuldAZX7ysqEDzuqSWH/0KiBcu8aXf/x oMng== X-Gm-Message-State: AA+aEWahkX4lqRtX6kWxbwgR7w6UPfwIGA2h887Ms7suSjOpPOKXAAL2 jntHCdKs8A7x+SZvbUaGMmQQ9SY3h2s= X-Google-Smtp-Source: AFSGD/Ut4dYLQUwyes+cpmqDEXC7KsBRrGup0YHtyjJNtzDMCliQ1Ou6DlWGWxuxJevSVIoNdQ93kw== X-Received: by 2002:adf:ea52:: with SMTP id j18mr9261287wrn.108.1542893324664; Thu, 22 Nov 2018 05:28:44 -0800 (PST) Received: from u.nix.is ([2a01:4f8:190:5095::2]) by smtp.gmail.com with ESMTPSA id t82-v6sm5418165wme.30.2018.11.22.05.28.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 05:28:43 -0800 (PST) From: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= To: git@vger.kernel.org Cc: Junio C Hamano , Jeff King , =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= , =?utf-8?q?SZEDER_G=C3=A1bor?= , Eric Sunshine , Derrick Stolee , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Subject: [PATCH v3 08/10] commit-graph write: remove empty line for readability Date: Thu, 22 Nov 2018 13:28:21 +0000 Message-Id: <20181122132823.9883-9-avarab@gmail.com> X-Mailer: git-send-email 2.20.0.rc0.387.gc7a69e6b6c In-Reply-To: <20181121012600.26951-1-szeder.dev@gmail.com> References: <20181121012600.26951-1-szeder.dev@gmail.com> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the empty line between a QSORT(...) and the subsequent oideq() for-loop. This makes it clearer that the QSORT(...) is being done so that we can run the oideq() loop on adjacent OIDs. Amends code added in 08fd81c9b6 ("commit-graph: implement write_commit_graph()", 2018-04-02). Signed-off-by: Ævar Arnfjörð Bjarmason --- commit-graph.c | 1 - 1 file changed, 1 deletion(-) diff --git a/commit-graph.c b/commit-graph.c index cb1aebeb79..21751231e0 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -890,7 +890,6 @@ void write_commit_graph(const char *obj_dir, close_reachable(&oids, report_progress); QSORT(oids.list, oids.nr, commit_compare); - count_distinct = 1; for (i = 1; i < oids.nr; i++) { if (!oideq(&oids.list[i - 1], &oids.list[i]))