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: 163039 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp1977998ill; Mon, 29 Apr 2019 07:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwIVg8qSwaKmBdO/d8YAtstV7KoJEaUG1jyaawi911JTVCQQysgy4Gj2RNKBm4vBFURp7a X-Received: by 2002:a63:5907:: with SMTP id n7mr2485603pgb.416.1556549356218; Mon, 29 Apr 2019 07:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556549356; cv=none; d=google.com; s=arc-20160816; b=Whth43KA7hok2FwAQq9myDB04MiPon3IOFxVjmsPrKCqTkMstFJBOLCxPzF4p+GCaI f+OSgWl3o1MyfHYYGoYlQPAX5Z9tdInjWSBGIh4agSOyxQSthMO9CjwUefDpDi/6C/Ft 2JsLE7xL8gTnHpN72n6U/8TCSDFOa1aS/UgZt/4ZFwc5kYD18PTORFfv0laTLvBqL6Mf gB6Kh7fcoFHoAgarqlipkrvRTGCNoqg59MsyOpy4tVYquY/TpTrZkMvQbo31Xnz1zVn4 /II+vA19RXNAMphy9GIcv1Xr6PVA5vX/mfLyZTgDQQd51japOi317G99JT2CIru1qi/v pzdA== 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=0mmb8KbbWCtfjhHsrd+vj0pp6+i0mYzDtsbj3K9ug1I=; b=ME+7/t5UQl/qG0nDHB3zvedcN4kL4Sg3elQsB+CIA9XFjiFTjuSMuXotPMxc3v/xRt J1Ljby0CDnPDMpH+jin9e4YWHtKDEfqI05UMFTL/P0b+PJI8qJnsw/CRlm4btMMnzylT WnQctbPtUh0/ULbeudTXmTn3ahGErNEFdSR8nrfvE9kdBUmAErD4RjdSP7Ft/oZpP5B9 Ey3kBFkpLwlzAjPi9CG21F9/uTgURkrtKHYHdYn6LwGaSWxJjzxzH8Oe3But+dvlfl+I mrQIfcaZVDMoEMvZugKyDKT/5VjJyQO5CNSlVeYPqibdMpWBtdgVrqoNVkWttERTngoi JLRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="E/9dWesp"; 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 j1si20000474pgb.401.2019.04.29.07.49.15; Mon, 29 Apr 2019 07:49:16 -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="E/9dWesp"; 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 S1728469AbfD2OtO (ORCPT + 30 others); 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: 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, 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(-) -- 2.7.4 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