# Re: \[PATCH bpf-next v3 08/10\] samples/bpf: update .gitignore

- From: Andrii Nakryiko \<hidden\>
- Date: 2021-10-06 18:25:51 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/10/7782093
- Thread: https://ratatoskr.run/netdev/2021/10/7780949/t.md

```text
On Wed, Oct 6, 2021 at 11:24 AM Andrii Nakryiko
[ref] wrote:
>
> On Sun, Oct 3, 2021 at 12:22 PM Quentin Monnet [ref] wrote:
> >
> > Update samples/bpf/.gitignore to ignore files generated when building
> > the samples. Add:
> >
> >   - vmlinux.h
> >   - the generated skeleton files (*.skel.h)
> >   - the samples/bpf/libbpf/ and .../bpftool/ directories, recently
> >     introduced as an output directory for building libbpf and bpftool.
> >
> > Signed-off-by: Quentin Monnet <redacted>
> > ---
> >  samples/bpf/.gitignore | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/samples/bpf/.gitignore b/samples/bpf/.gitignore
> > index fcba217f0ae2..09a091b8a4f3 100644
> > --- a/samples/bpf/.gitignore
> > +++ b/samples/bpf/.gitignore
> > @@ -57,3 +57,7 @@ testfile.img
> >  hbm_out.log
> >  iperf.*
> >  *.out
> > +*.skel.h
> > +vmlinux.h
> > +bpftool/
> > +libbpf/
>
> this will match files and directories in any subdir as well, maybe
> let's add / in front to be explicit about doing this only on current
> directly level (*.skel.h is fine)?

Oh, let's also move this patch before the samples/bpf changes, so that
there is no intermediate state between commits where we have these
files not ignored


>
> > --
> > 2.30.2
> >
```
