Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6140964yba; Wed, 1 May 2019 06:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqypr63vgfMNfLhO0ovvxldiKaffVZopkmBcKH+s3oo+dh4qOPFvMqGsIz5J9emx/pJiJT8C X-Received: by 2002:a65:6655:: with SMTP id z21mr73381236pgv.33.1556718564226; Wed, 01 May 2019 06:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556718564; cv=none; d=google.com; s=arc-20160816; b=I6q14NBBr/tvrUUkq2WY/qhvB8To9vhIO68cVzmsBR54jJiIC1hTKz8BZqExrtZxzD hOpOouXSku1fv++wb8jFwOJERIB+w/6RIMP8XbUbPhM2+ZhjotMu8JDy+TZJRVA0UXOF 2sTLPl+e8uy1bus83DmTDPBHpJWREZdXe/kQIcpNwX4p+JUmTc/EW/2z2UuwMiNYcONf if13crUkMuPsxv6lPbUuhv37SD8LE7IYvG7yeOYCBuNwqE1Xmzi0PR68EjrOAs5sbhBE l+XlOToQhKLbryLqDw8b+5l5nryppnozpG//juzxYfVccWB0rjSMQT0WzClp98oNEZ0V 6esg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=r0tKWu4K0FaqMQsDo16rqksf/YsVt69hJkPu3of5sNs=; b=bC/Rtj07nRrnfpelfQE5wyRZwC2ojXt1Vxy6f9pvkpo0ErqY3sPEqV1pXCuvWHwkxD FluvVukPYtlbKXI7ghyXxi+R9EJWh9ZKr/wPpsdZ5R6GWq1oE+IMZZLM7M98W3Hpr/9k xsIud2mEoBn8Ul8del9lwauQ0JenWpOcpwLQt3Kqk+4hPpnVoML5JnZe5Vxe/77mOkXo ig8Z132hvl11p++GeVEP/6w8MRzN1Rxp/76A/vPZ6oGNVwDOG5e1iEw7Pn0f3rllLWMN Ht0rxIJz9xmcBkmuN+y1HrikByQPOK+1ai0iNzlMliFwUi8uTrzjZ3KkTkt1bszKxnun 3Z+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Si7Jr3+R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si43197058pfj.38.2019.05.01.06.49.07; Wed, 01 May 2019 06:49:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Si7Jr3+R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbfEANrd (ORCPT + 99 others); Wed, 1 May 2019 09:47:33 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:29860 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbfEANrd (ORCPT ); Wed, 1 May 2019 09:47:33 -0400 Received: from grover.flets-west.jp (softbank126125154137.bbtec.net [126.125.154.137]) (authenticated) by conuserg-11.nifty.com with ESMTP id x41DkAqH006908; Wed, 1 May 2019 22:46:10 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x41DkAqH006908 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1556718371; bh=r0tKWu4K0FaqMQsDo16rqksf/YsVt69hJkPu3of5sNs=; h=From:To:Cc:Subject:Date:From; b=Si7Jr3+R+5NB5DAbMoi+oNJUQEhichvJc7P6ya+mg1vm6/5aK6WVp9kpY8a1C7Oth ILQAa6yO0t1uWDOFYJeOOHH7SZHzMgJcuFOkTdCoYNDs/C4g3v9c0bDHkWvxP++nuY jRuHdh627B42W8JzIZiZVjagvzZNr2yFf/B3nUtI4moG7spsHrXAueqn5F93lgsc0h xJLRW4w6lEA9utgwsZG49UGerJ6pkdxFhV28p/zihvr6RCKeNvozRQSh+a6rSQPhtF 9NgzNE4qWZw0ePK4JiB+3NsmmVKr1nRVT6Qskl+EslWk5ZCxaLXzKXxzMDCS4Bj1NL u2EfE5O1cd7xA== X-Nifty-SrcIP: [126.125.154.137] From: Masahiro Yamada To: Daniel Borkmann Cc: Quentin Monnet , Masahiro Yamada , Sirio Balmelli , Song Liu , Alexei Starovoitov , netdev@vger.kernel.org, Yonghong Song , Taeung Song , linux-kernel@vger.kernel.org, Jakub Kicinski , Martin KaFai Lau , bpf@vger.kernel.org Subject: [PATCH v2] bpftool: exclude bash-completion/bpftool from .gitignore pattern Date: Wed, 1 May 2019 22:45:59 +0900 Message-Id: <1556718359-1598-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tools/bpf/bpftool/.gitignore has the "bpftool" pattern, which is intended to ignore the following build artifact: tools/bpf/bpftool/bpftool However, the .gitignore entry is effective not only for the current directory, but also for any sub-directories. So, from the point of .gitignore grammar, the following check-in file is also considered to be ignored: tools/bpf/bpftool/bash-completion/bpftool As the manual gitignore(5) says "Files already tracked by Git are not affected", this is not a problem as far as Git is concerned. However, Git is not the only program that parses .gitignore because .gitignore is useful to distinguish build artifacts from source files. For example, tar(1) supports the --exclude-vcs-ignore option. As of writing, this option does not work perfectly, but it intends to create a tarball excluding files specified by .gitignore. So, I believe it is better to fix this issue. You can fix it by prefixing the pattern with a slash; the leading slash means the specified pattern is relative to the current directory. Signed-off-by: Masahiro Yamada --- Changes in v2: - Add more information to the commit log to clarify my main motivation - Touch "bpftool" pattern only tools/bpf/bpftool/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bpf/bpftool/.gitignore b/tools/bpf/bpftool/.gitignore index 67167e4..8248b8d 100644 --- a/tools/bpf/bpftool/.gitignore +++ b/tools/bpf/bpftool/.gitignore @@ -1,5 +1,5 @@ *.d -bpftool +/bpftool bpftool*.8 bpf-helpers.* FEATURE-DUMP.bpftool -- 2.7.4