Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2056328rwj; Sat, 24 Dec 2022 07:58:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXt1CFCgMitHcdn6wQ9fpZc2OUuCNhhiWWiBnDDSCLjJqNGDAS6txibAYCmId9G9B84Qf5Yk X-Received: by 2002:a17:906:2514:b0:7c1:1b89:60ed with SMTP id i20-20020a170906251400b007c11b8960edmr14568353ejb.18.1671897498392; Sat, 24 Dec 2022 07:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671897498; cv=none; d=google.com; s=arc-20160816; b=gEcEbzYWRbD8fY8Ja4+2nvA4hTQ4zVVshdsP3JONzjrkxvEDLtOWvxsfZ+8s/tpC05 UQQUDn7AZVKQF0b8sYON2N58/2BwtMMFYBhq/JVcYH0BIee7OUZ7BQ8nRc20qXUoHpHM RMjdOHyP8ePrdqnuY9h++aif3UbfBHwN3CejwgdSL78ALTNCPa4m/HLyTFUVTT3oUM9z 2oA5vWCmZR4auRiDZGPFp4j+5B3KEfIoM0QHAtmEXYp1zUQ488fZko9VMKaP+yjV6sfy uR9lyZYhf75fldkhfrZmO4QCFQy81HckwNlDzs5HMx/HTTOeXKRDI4smOkNB/l2VUv0I vbaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XVhsY1WIZJPnolq5z24YE34HAbFQothHnpjhY1htj+M=; b=OIGiObhyVzt7A9/vOqsaGKElnoXXCVW0NyVFevTf78JRyRMmmo2shUjuWSrYyjBjZY i5Pq8AZOjcQXov/RTlNgrP3O9uDBnrm2n4WsWPBjdY2uO01SSj83yz/bXBhymLOGmPZZ g5/vrwCiYtKYoksVZAFFWPsAD1YGNWsPQIPIJNe/+NRVpzaXWLTaDtzd0oJQvcsjBVvy u39+Ita/SlYTrMUzYZj3n0AJEUV3khYqfBYBcZqaR9f2BrM4kwQ6swYfrH9hfg/GfcwW 1Uo5x3OMQ4NMaiSbT2iNPTLi4P5ZIbQeh1tBWw5ZKuzevl7dmuHaufIvtAL3ZY2GUE7h dWhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OcsQ0Te6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt7-20020a170906ee8700b007c143a8a653si5197483ejb.855.2022.12.24.07.58.03; Sat, 24 Dec 2022 07:58:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OcsQ0Te6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbiLXPvr (ORCPT + 66 others); Sat, 24 Dec 2022 10:51:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiLXPvp (ORCPT ); Sat, 24 Dec 2022 10:51:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814AFA474; Sat, 24 Dec 2022 07:51:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC81A60AB6; Sat, 24 Dec 2022 15:51:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AE4CC433D2; Sat, 24 Dec 2022 15:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671897103; bh=0a2bOzY1EIi875Y2csR7N5qCzb/EoHegIpJSUFHH3m0=; h=From:To:Cc:Subject:Date:From; b=OcsQ0Te6oExjar/Ur0kFE885A3wVRnq4AYq6N7Goz95vd2Wjg79hgoGNJnzasymQH nhJlThUdScxPxY3zvSZmicxAZgmHr0GvnUM2+NcGwSP7B3gIt9UOXi7vjbG055UDH4 UUM2Crjepl0hAqqmEiilNcESKGN06rncHeqQbQYHviH6V/AP4qKHQUUsrFT7RKLdrR jZXL6cgoFJMHfrGqAEgUBAeEPNkMoedFt157ZPGGNszUlntKBiP+jJ+9J30FYOSIkC 3CPABwvOCto4jPXUmZPMeQHiYKKmYiLKT8pERo/polCCaUh6PehvP9g70+3rUm1fKc zhNJNVAtX5/sQ== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Alex Gaynor , Andrew Davis , Kees Cook , Miguel Ojeda , Wedson Almeida Filho Subject: [PATCH v2 1/2] .gitinogre: update the command to check tracked files being ignored Date: Sun, 25 Dec 2022 00:51:37 +0900 Message-Id: <20221224155138.447912-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recent git versions do not accept the noted command. $ git ls-files -i --exclude-standard fatal: ls-files -i must be used with either -o or -c The -c was implied for older git versions, but we need to make it explicit now. Also, replace --exclude-standard with --exclude-per-directory=.gitignore so that everyone will get consistent results. git-ls-files(1) says: --exclude-standard Add the standard Git exclusions: .git/info/exclude, .gitignore in each directory, and the user's global exclusion file. We never know what are locally added to $GIT_DIR/info/exclude or $XDG_CONFIG_HOME/git/ignore. We can only manage .gitignore files committed in the repository. Signed-off-by: Masahiro Yamada --- (no changes since v1) .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3ec73ead6757..2e2e3d1eeaee 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ # subdirectories here. Add them in the ".gitignore" file # in that subdirectory instead. # -# NOTE! Please use 'git ls-files -i --exclude-standard' +# NOTE! Please use 'git ls-files -i -c --exclude-per-directory=.gitignore' # command after changing this file, to see if there are # any tracked files which get ignored after the change. # -- 2.34.1