Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1188255yba; Sun, 5 May 2019 00:22:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPsfYUEXdWW07+VxxLLZ8K/MdUG9x0NaCQ/fLIOYr8OQrL0WIZt/IeNDFyO8p4GJShQCfV X-Received: by 2002:aa7:87c3:: with SMTP id i3mr23488965pfo.85.1557040951393; Sun, 05 May 2019 00:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557040951; cv=none; d=google.com; s=arc-20160816; b=EPFXux5FFbVvLqQ31L4YYVLJO2GZq+Dz1I7e7EGj2t5HRSwPPsIPf5TwTw08IfcetD aFBbdqusFxGqnlob3HF5nH1Qqe2VCpK6cz+D7RSWtAie0HJTfx1glLmvMbDY6+V+wAxI CuST1uu4zeXTyqT9sFmBjLsZnamseL+h2rgWweEh/H8j/wmpvknWdw/YnwPtWn+bW3Oh yoX4L9CPId9fKLUqZT+AHe88giIASdB9bOT0DZunJUSB/D0EV0pZwt0FNS85xSQfDovq LwNvrolqs7Lu0cJxYDcmQ3PgfOJxt3aDNAXOzLXkfYL883M4rPk7rizBvdKTnKrvKrZF s6dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rNM8okm3j5qcFOlmbtWz/i2dMSCk9m19FRDJuL/XICM=; b=PMUC/rDtftih4T+YMeBdGCR5MHVzLRgLFtBzODECeHElIXb1iBb4jpnUONKSht8O5/ yuLHjA7fDH/U5wcr5HDUlWcxUPHDj1HGyINCv9GFZdyR6QkTpVxUeq9qDnmExf1AqMnf h+5puriSiOka9+r9NccARH+1wPBU9JjAAsMs3hoRS+8yMXb/tBDO9GwCQS8mCt9DCcTu pmQmrQoDykpPfZbHJb1b05ZLq6u5c1J6IMT9wIL/q+y4gixHAbTxROOwpO4wSZuMFXTf o0Zgj0Eti2sI+M9qw5pgRkfR/F+MXqB+Jlb3XsbJZ/4FxxrmkccdLV/eDr2eJc5qJ+yK 0igA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PnTxj4e7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si9668015pgh.88.2019.05.05.00.22.05; Sun, 05 May 2019 00:22:31 -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=@gmail.com header.s=20161025 header.b=PnTxj4e7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbfEEGpA (ORCPT + 99 others); Sun, 5 May 2019 02:45:00 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38911 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbfEEGpA (ORCPT ); Sun, 5 May 2019 02:45:00 -0400 Received: by mail-lf1-f67.google.com with SMTP id v1so7006401lfg.5; Sat, 04 May 2019 23:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rNM8okm3j5qcFOlmbtWz/i2dMSCk9m19FRDJuL/XICM=; b=PnTxj4e7Sd5m5Qx13CNSVDglWtShUklbGXst0dBhWas3TyPw7cPe2rx18VME+UOY4l p1EbTPApp/FJtj88mTtHzXHyCcD2vRAx6+tsnPeqm92mfSY50CsenIx5eNZ3zXR+s3Kl 5Va7YeyFpQWd0esBmZWWBTUwyhZ+VJ8fnqk2yi46zWtb9kGcPGyW1gCxfMqL9BN+c0UI Cy0CzpcbBniyaT94O9hoYsVa5hLGrb231P6PRkrx6htQzHaVCsCubzAuP2bGaeKmwd7l XW1vHdwOph6/D2dNeOhxfVu/v2iSSCdiZuthdzGsFhpihjSb0tkawoaiBjShvABaeqVW gk+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rNM8okm3j5qcFOlmbtWz/i2dMSCk9m19FRDJuL/XICM=; b=kMG6PxvSVtU0iAxJ3r8iMBFhgM0u1g9DK8miwndYLf7R+cmMuAdpI0EG1AjSoGFox3 Q7fM7n6bdz8vD57NDVs9KNpJpaiRi/tibNupyU1Yp+RMT//K0yhT4GYrXVVNerXsCfrU /WFJJuunlBoJzYFGGJKJUm69dGSYSX531BYYBFmJttAuFBJV/AthnWRSJpFLJfnr4jBm l4dKWocm12tlqNL2svgET0msOLYS8qUFf9RF50kP1TU6sYBK6puJvpgU9AfvM1Gy99sE 8GstFX7T3YQvuePfzkJkd+aG6CthMcFYc3otBGXURTVYxsTI7ZH0vx0+OyW45DKbDb3K zlnA== X-Gm-Message-State: APjAAAVisYvAV+1QAd/aUzd34VPYQ4g2Xt+XWh6ItCBdIGcPzhFzrVc1 ln61v70GCAoCPMywLqCFCCz+iQQSJazVooQGQok= X-Received: by 2002:ac2:494f:: with SMTP id o15mr565893lfi.22.1557038697905; Sat, 04 May 2019 23:44:57 -0700 (PDT) MIME-Version: 1.0 References: <1556718359-1598-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: From: Alexei Starovoitov Date: Sat, 4 May 2019 23:44:46 -0700 Message-ID: Subject: Re: [PATCH v2] bpftool: exclude bash-completion/bpftool from .gitignore pattern To: Quentin Monnet Cc: Masahiro Yamada , Daniel Borkmann , Sirio Balmelli , Song Liu , Alexei Starovoitov , Network Development , Yonghong Song , Taeung Song , LKML , Jakub Kicinski , Martin KaFai Lau , bpf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 1, 2019 at 7:02 AM Quentin Monnet wrote: > > 2019-05-01 22:45 UTC+0900 ~ Masahiro Yamada > > 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 > > > > Thanks a lot for the changes! > > Reviewed-by: Quentin Monnet Applied. Thanks