From patchwork Thu Feb 23 14:15:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi <18994118902@163.com> X-Patchwork-Id: 13150468 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 54A44C64ED6 for ; Thu, 23 Feb 2023 14:16:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234617AbjBWOQ3 (ORCPT ); Thu, 23 Feb 2023 09:16:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234685AbjBWOQT (ORCPT ); Thu, 23 Feb 2023 09:16:19 -0500 Received: from m12.mail.163.com (m12.mail.163.com [123.126.96.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E430C57D3A for ; Thu, 23 Feb 2023 06:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=GUznP 5zL1umj9C1EysQAh/DchVShK+lEXckkdRBbQM4=; b=MmgnsQMMBqogwLsV0nroh QlBBQI4rPIXyecmEoztW/X/ocJSKUavm+jIMNukne8ZgYWC6hA9l/V5xP0u2GoVr vCeHnDsKximfnMghTE+ljPOcHGcEx3UlNyomEcDHlvzpJemss0tW3fKLxsM2gS4+ a+WkG4nVqh7lGtsQHYz3vg= Received: from zy-X550VX.. (unknown [183.255.48.209]) by smtp18 (Coremail) with SMTP id JNxpCgCHzqondfdjXsaGFA--.49594S5; Thu, 23 Feb 2023 22:16:10 +0800 (CST) From: Zhang Yi <18994118902@163.com> To: git@vger.kernel.org Cc: v.garg.work@gmail.com, Zhang Yi <18994118902@163.com> Subject: [GSOC] [PATCH v2 1/3] t9700:fix title style Date: Thu, 23 Feb 2023 22:15:18 +0800 Message-Id: <20230223141520.1967625-2-18994118902@163.com> X-Mailer: git-send-email 2.29.0-rc0 In-Reply-To: <20230223141520.1967625-1-18994118902@163.com> References: <20230223141520.1967625-1-18994118902@163.com> MIME-Version: 1.0 X-CM-TRANSID: JNxpCgCHzqondfdjXsaGFA--.49594S5 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jr47tF4ftF45JryxJFy5Arb_yoW3KFbEga 4kWF1DG347ZFn2qr1xAFsavFnrA347Gw1YkFnYgw1DAa47JrnYvF95GF1rAan8Ca93Cas3 Kws8Xr4rG3WIyjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRM73ktUUUUU== X-Originating-IP: [183.255.48.209] X-CM-SenderInfo: zprymmqurrmmmqsbiqqrwthudrp/1tbiGAof-lv2k7QIyAAAs5 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org One title in t9700-perl-git.sh is in old style where the test_expect_success command and test title are written on separate lines. Combine the test_expect_success command and the title in one line. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index b105d6d9d5..3f6396ef63 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -13,9 +13,8 @@ skip_all_if_no_Test_More # set up test repository -test_expect_success \ - 'set up test repository' \ - 'echo "test file 1" > file1 && +test_expect_success 'set up test repository' ' + echo "test file 1" > file1 && echo "test file 2" > file2 && mkdir directory1 && echo "in directory1" >> directory1/file && From patchwork Thu Feb 23 14:15:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi <18994118902@163.com> X-Patchwork-Id: 13150467 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 9EE89C61DA4 for ; Thu, 23 Feb 2023 14:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234721AbjBWOQ2 (ORCPT ); Thu, 23 Feb 2023 09:16:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234694AbjBWOQT (ORCPT ); Thu, 23 Feb 2023 09:16:19 -0500 Received: from m12.mail.163.com (m12.mail.163.com [123.126.96.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3EB1A56519 for ; Thu, 23 Feb 2023 06:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=EtOcd mI1sd/hZfWmW6xKKc7llO/nJHcKdCqHA9cqIHQ=; b=E3tWxr1QWlDJIWhSpaLYW efHZ7TEnx9goZ5kHB4z4ZAbLzqUfkti41kXIissoMZiJapF58eITLYq4i++D2g1/ LOGKZ3xWgeWHM6e/kukIKQZmMsrV7yGyUDxVJG3BgT6N8ms0MirlsK2+qsJ0HIyr IvH9/8utmCREyo9/Z+FVgw= Received: from zy-X550VX.. (unknown [183.255.48.209]) by smtp18 (Coremail) with SMTP id JNxpCgCHzqondfdjXsaGFA--.49594S6; Thu, 23 Feb 2023 22:16:14 +0800 (CST) From: Zhang Yi <18994118902@163.com> To: git@vger.kernel.org Cc: v.garg.work@gmail.com, Zhang Yi <18994118902@163.com> Subject: [GSOC] [PATCH v2 2/3] t9700:change indents to TAB Date: Thu, 23 Feb 2023 22:15:19 +0800 Message-Id: <20230223141520.1967625-3-18994118902@163.com> X-Mailer: git-send-email 2.29.0-rc0 In-Reply-To: <20230223141520.1967625-1-18994118902@163.com> References: <20230223141520.1967625-1-18994118902@163.com> MIME-Version: 1.0 X-CM-TRANSID: JNxpCgCHzqondfdjXsaGFA--.49594S6 X-Coremail-Antispam: 1Uf129KBjvJXoWxArWrXw4kXryftr4rur4kJFb_yoW5GF45pF Wa9r1ayr1qqr13JwsxuFyxCrW7Ja1kCryDXrZxC3s3CrnYkr1xtF13Kr17XFyrXFnIqa1a ya4q9r15Ww4ag3JanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pEDGYDUUUUU= X-Originating-IP: [183.255.48.209] X-CM-SenderInfo: zprymmqurrmmmqsbiqqrwthudrp/1tbiYw8f-laEN1MBmAAAsi Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The body of one test script in t9700-perl-git.sh is indented by spaces while others are indented by TAB.And test bodies should be indented with TAB, not spaces. Replace all space indents by TAB. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index 3f6396ef63..671875a3fc 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -14,35 +14,35 @@ skip_all_if_no_Test_More # set up test repository test_expect_success 'set up test repository' ' - echo "test file 1" > file1 && - echo "test file 2" > file2 && - mkdir directory1 && - echo "in directory1" >> directory1/file && - mkdir directory2 && - echo "in directory2" >> directory2/file && - git add . && - git commit -m "first commit" && - - echo "new file in subdir 2" > directory2/file2 && - git add . && - git commit -m "commit in directory2" && - - echo "changed file 1" > file1 && - git commit -a -m "second commit" && - - git config --add color.test.slot1 green && - git config --add test.string value && - git config --add test.dupstring value1 && - git config --add test.dupstring value2 && - git config --add test.booltrue true && - git config --add test.boolfalse no && - git config --add test.boolother other && - git config --add test.int 2k && - git config --add test.path "~/foo" && - git config --add test.pathexpanded "$HOME/foo" && - git config --add test.pathmulti foo && - git config --add test.pathmulti bar - ' + echo "test file 1" > file1 && + echo "test file 2" > file2 && + mkdir directory1 && + echo "in directory1" >> directory1/file && + mkdir directory2 && + echo "in directory2" >> directory2/file && + git add . && + git commit -m "first commit" && + + echo "new file in subdir 2" > directory2/file2 && + git add . && + git commit -m "commit in directory2" && + + echo "changed file 1" > file1 && + git commit -a -m "second commit" && + + git config --add color.test.slot1 green && + git config --add test.string value && + git config --add test.dupstring value1 && + git config --add test.dupstring value2 && + git config --add test.booltrue true && + git config --add test.boolfalse no && + git config --add test.boolother other && + git config --add test.int 2k && + git config --add test.path "~/foo" && + git config --add test.pathexpanded "$HOME/foo" && + git config --add test.pathmulti foo && + git config --add test.pathmulti bar +' test_expect_success 'set up bare repository' ' git init --bare bare.git From patchwork Thu Feb 23 14:15:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi <18994118902@163.com> X-Patchwork-Id: 13150469 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 026EBC61DA4 for ; Thu, 23 Feb 2023 14:16:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234764AbjBWOQb (ORCPT ); Thu, 23 Feb 2023 09:16:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234326AbjBWOQX (ORCPT ); Thu, 23 Feb 2023 09:16:23 -0500 Received: from m12.mail.163.com (m12.mail.163.com [123.126.96.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6966A49893 for ; Thu, 23 Feb 2023 06:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=HB+dW uvscvjtkF0TmqtxSRbCMAwdZR2HoFjGWALWztU=; b=EFJK44Bvx/jB8VuMTiy6O xpc++UcMvVALLqk9ta20eNCrkEWM+12Yifm0IXZb/2GpM2b2Koho5a7zuwj5T4Ut rYzDeZ5BAyyrDuB5/zPVYa4Ga43MXDMpMCES4lWjV+4RNHlwz2v9A5oTbgKHkBs0 URVwBYpqVbJbAoasjckfV0= Received: from zy-X550VX.. (unknown [183.255.48.209]) by smtp18 (Coremail) with SMTP id JNxpCgCHzqondfdjXsaGFA--.49594S7; Thu, 23 Feb 2023 22:16:17 +0800 (CST) From: Zhang Yi <18994118902@163.com> To: git@vger.kernel.org Cc: v.garg.work@gmail.com, Zhang Yi <18994118902@163.com> Subject: [GSOC] [PATCH v2 3/3] t9700:delete whitespaces after redirect operators Date: Thu, 23 Feb 2023 22:15:20 +0800 Message-Id: <20230223141520.1967625-4-18994118902@163.com> X-Mailer: git-send-email 2.29.0-rc0 In-Reply-To: <20230223141520.1967625-1-18994118902@163.com> References: <20230223141520.1967625-1-18994118902@163.com> MIME-Version: 1.0 X-CM-TRANSID: JNxpCgCHzqondfdjXsaGFA--.49594S7 X-Coremail-Antispam: 1Uf129KBjvJXoW7XFW5Cw15AFyxWFy5urW8Crg_yoW8JrW7pr 45Gr1ayrn0vr47GrnruF18CryxCa98Grn8XFsF9wn8GFn8CFsFkF13tr47WF18XrnIq3ZI ga1ktry8Gr4rW3JanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UcyCAUUUUU= X-Originating-IP: [183.255.48.209] X-CM-SenderInfo: zprymmqurrmmmqsbiqqrwthudrp/1tbiZREf-l8ZXC+PwgAAst Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org There are whitespaces after redirect operators,which is a deprecated style. Delete whitespaces after redirect operators. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index 671875a3fc..ccc8212d73 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -14,20 +14,20 @@ skip_all_if_no_Test_More # set up test repository test_expect_success 'set up test repository' ' - echo "test file 1" > file1 && - echo "test file 2" > file2 && + echo "test file 1" >file1 && + echo "test file 2" >file2 && mkdir directory1 && - echo "in directory1" >> directory1/file && + echo "in directory1" >>directory1/file && mkdir directory2 && - echo "in directory2" >> directory2/file && + echo "in directory2" >>directory2/file && git add . && git commit -m "first commit" && - echo "new file in subdir 2" > directory2/file2 && + echo "new file in subdir 2" >directory2/file2 && git add . && git commit -m "commit in directory2" && - echo "changed file 1" > file1 && + echo "changed file 1" >file1 && git commit -a -m "second commit" && git config --add color.test.slot1 green &&