Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp310308ybi; Wed, 29 May 2019 22:00:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6nsS5pdaQukdnmq1ztcvWoWAgB3xZdBHHNhfF8KzgyflRa6b8wNxq+XQFA9/5QlYXcWyY X-Received: by 2002:a65:4084:: with SMTP id t4mr2031283pgp.224.1559192458535; Wed, 29 May 2019 22:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559192458; cv=none; d=google.com; s=arc-20160816; b=qjjKHpgLDr1TR3kGW73kmbB4DBO7j9S8LSeYo9UxyLH8G4Mm/ygImqWSWLbrKUJiSR 6pLsDmSjeY19KHYvkBiJmekAA/hlvWENlWg+EGB6S5yydqk+XNW/cRNBDHR3bg9XtPQj guBUdXZmmW5pN2Pt9zugXS2sPox9oSxQl9dTpL5mYIAA9Vo87pvK6k9iPYqsxAfYdEqx rSYt4EjC/XXG4ZpXSrKyFGdstEpVJijC0XCXibV9kapwjfqSN0d79c8t1N9l/EApwRqm bkuyX4EjiRqYZxvVwaV/FjEoxaVbHMf3EVG/Jgg00E/7kdik3WvGnSuNnatzpCrZXzRY iNwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9VJiLYaLBqgHlN1u9eSgivbCvjW7mQdAkwYmbS+fktg=; b=mKhlqe4Q3tfUZh4Dje/TVqVD0M4YWHdQvyA6VJW7lOYn2LUc/xemVeX7xNr/9UPloq reTWNwF3bW1okcm8Vu5Fz2defGplIv8UjXv36O8IjTaN7Nb2IJ7MpIy29HwxUZk+8oaE YmgN9yY77KuqAZ5JZK2tX1NErCibzQX3trDYUTFl08klQvWvE/vNTcvnmGYrvM2QH1Vc iOUcLVt9Yx3Wu5cW4OE7oyCcELDBlyVe3t8jXRTtrxOJWdHwqxDyf+uVquk61hNWTjLZ 5s9C86737j58R5qhJek2fBhzwJXIJcPMogtETSzTwGvJU/vNJ+Kt49I5MKcUZ8Z4r+Gy bPOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HbZnQBnx; 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 o102si2006428pje.42.2019.05.29.22.00.41; Wed, 29 May 2019 22:00:58 -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=@kernel.org header.s=default header.b=HbZnQBnx; 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 S2389105AbfE3E6Y (ORCPT + 99 others); Thu, 30 May 2019 00:58:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:45402 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbfE3DJt (ORCPT ); Wed, 29 May 2019 23:09:49 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90AC02447C; Thu, 30 May 2019 03:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559185788; bh=jxFEU4hEZfRWH8xSa6TsEgftBEFtYHFMd2kCHP1i7X8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HbZnQBnxgu4jhpuhPHmUunLz7Wf/IkSQBqiPBWBP7E7/8dJ87fryMla/GLd+KwwjL eCrlJ93pre4fM3WDfMasqqQm4UO4mrXIjRs7ymcpuITf7oJMJQjgavn9iavnwGJO7b uO6/u3MmLynY/yK957/4hY0dSRry6S9HDcmcepEI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Quentin Monnet , Alexei Starovoitov , Sasha Levin Subject: [PATCH 5.1 058/405] bpftool: exclude bash-completion/bpftool from .gitignore pattern Date: Wed, 29 May 2019 20:00:56 -0700 Message-Id: <20190530030543.827288335@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030540.291644921@linuxfoundation.org> References: <20190530030540.291644921@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit a7d006714724de4334c5e3548701b33f7b12ca96 ] 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 Reviewed-by: Quentin Monnet Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- 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 67167e44b7266..8248b8dd89d4b 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.20.1