From patchwork Mon Apr 29 14:47:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1092644 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="E/9dWesp"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44t6xW2Y4kz9sMM for ; Tue, 30 Apr 2019 00:49:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728445AbfD2OtO (ORCPT ); Mon, 29 Apr 2019 10:49:14 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:43392 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728318AbfD2OtO (ORCPT ); Mon, 29 Apr 2019 10:49:14 -0400 Received: from grover.flets-west.jp (softbank126125154137.bbtec.net [126.125.154.137]) (authenticated) by conuserg-11.nifty.com with ESMTP id x3TElneS020381; Mon, 29 Apr 2019 23:47:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x3TElneS020381 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1556549270; bh=0mmb8KbbWCtfjhHsrd+vj0pp6+i0mYzDtsbj3K9ug1I=; h=From:To:Cc:Subject:Date:From; b=E/9dWespF/U4QZkTXajWW8HEjCLAKKtzzLhBEGSrAj4VfD82pdB+QgLaWlgB+DsaT 6UI0FG8X+mhTF7iJ86IY7bk/U3OQrxcU79h6tlvXMIkW+rNrOfRKryd3DVsWy1zDwK GEoeQScbG6zQ4LquGHs3UKD3O3f/13bm8Od5l+ilrhK1fR+9bjc8BSU6acIm2x3XLC HdLCTYw7cNLim5D7ScD3XYmceYHSbcgDvkXZ5QWKCbEs8RsV66wgIIkk/SAIjtrJzP pGVLbPgdaEyka1onhlmaEIaNBLWsgWmMU3aBWNiOlyoyhj6j6f3nXE4QE494aHzA1n QXm9/2qJy4Asg== X-Nifty-SrcIP: [126.125.154.137] From: Masahiro Yamada To: Daniel Borkmann Cc: 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] bpftool: exclude bash-completion/bpftool from .gitignore pattern Date: Mon, 29 Apr 2019 23:47:39 +0900 Message-Id: <1556549259-16298-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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, the following file is also considered to be ignored: tools/bpf/bpftool/bash-completion/bpftool It is obviously version-controlled, so should be excluded from the .gitignore pattern. You can fix it by prefixing the pattern with '/', which means it is only effective in the current directory. I prefixed the other patterns consistently. IMHO, '/' prefixing is safer when you intend to ignore specific files. Signed-off-by: Masahiro Yamada --- tools/bpf/bpftool/.gitignore | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/bpf/bpftool/.gitignore b/tools/bpf/bpftool/.gitignore index 67167e4..19efcc8 100644 --- a/tools/bpf/bpftool/.gitignore +++ b/tools/bpf/bpftool/.gitignore @@ -1,5 +1,5 @@ *.d -bpftool -bpftool*.8 -bpf-helpers.* -FEATURE-DUMP.bpftool +/bpftool +/bpftool*.8 +/bpf-helpers.* +/FEATURE-DUMP.bpftool