From patchwork Wed Jul 29 23:13:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "brian m. carlson" X-Patchwork-Id: 11691885 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8C8B8722 for ; Wed, 29 Jul 2020 23:15:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76C96207F5 for ; Wed, 29 Jul 2020 23:15:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.b="EDchI3qc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbgG2XPU (ORCPT ); Wed, 29 Jul 2020 19:15:20 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:41154 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbgG2XPT (ORCPT ); Wed, 29 Jul 2020 19:15:19 -0400 Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:b610:a2f0:36c1:12e3]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id 1E8CF60CF4; Wed, 29 Jul 2020 23:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1596064488; bh=6vdJnTtdikEyvh2eoGCAUKW9eW10Iio5RbuTQEHrp4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Reply-To: Subject:Date:To:CC:Resent-Date:Resent-From:Resent-To:Resent-Cc: In-Reply-To:References:Content-Type:Content-Disposition; b=EDchI3qcY1TAwpasekjCFxZ2x2SbWFZNPqazot5XiOkhIzp/D1mTHqaBbBZYIYoT7 JHPE6z1NiNnTOwX4XSa1QNQLi9MJ3sxH7crJca1a+FVleprOWRy1uwYludigx4ptnv sRzjMjqHkM8JVPyAqaVM/fyrOrzx+zcABjKYWaiGyhi104T5J4P6Yj6lOyOA9qg5T5 KxERGDywAYNl57IdJ63/cuUdLnFlVRKgoapi5mMfAZ/6Ofrw8R6hXxtOdPtF5R0P09 jaIxPp14JggfmmBHSokPCFHC/FJ6HX2i7Q489NUK8Boo6C3Gaah0Y5hsSJp2ReM6PP aKEHenJeuZvNycpy/C6fYCpZwaugJ0+a7qqA57Lq/eD24TJ0ObLbSEdGyh4UoNYCuD aH62bWB8tqCF1JzrHOOfC40N0WZgV21THkYuLAumJU1Bub+A33JPz9wfFFODSAh4Bl Na14lrz1FzZ03UfvoYQnQ4xVH7bFxlHdNGuLGngljvDc8N8sby8 From: "brian m. carlson" To: Cc: Eric Sunshine Subject: [PATCH v6 05/39] t6100: make hash size independent Date: Wed, 29 Jul 2020 23:13:54 +0000 Message-Id: <20200729231428.3658647-6-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6 In-Reply-To: <20200729231428.3658647-1-sandals@crustytoothpaste.net> References: <20200728233446.3066485-1-sandals@crustytoothpaste.net> <20200729231428.3658647-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Instead of hard-coding a constant 40, split the output of rev-list by field. Signed-off-by: brian m. carlson --- t/t6100-rev-list-in-order.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t6100-rev-list-in-order.sh b/t/t6100-rev-list-in-order.sh index b2bb0a7f61..e934bc239c 100755 --- a/t/t6100-rev-list-in-order.sh +++ b/t/t6100-rev-list-in-order.sh @@ -22,7 +22,7 @@ test_expect_success 'setup a commit history with trees, blobs' ' test_expect_success 'rev-list --in-commit-order' ' git rev-list --in-commit-order --objects HEAD >actual.raw && - cut -c 1-40 >actual actual expect.raw <<-\EOF && HEAD^{commit} @@ -49,7 +49,7 @@ test_expect_success 'rev-list --in-commit-order' ' test_expect_success 'rev-list lists blobs and trees after commits' ' git rev-list --objects HEAD >actual.raw && - cut -c 1-40 >actual actual expect.raw <<-\EOF && HEAD^{commit}