grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MULTIBOOT2 SPEC PATCH v3 2/4] multiboot2: Use .gitignore files


From: Hans Ulrich Niedermann
Subject: Re: [MULTIBOOT2 SPEC PATCH v3 2/4] multiboot2: Use .gitignore files
Date: Wed, 13 May 2020 22:55:10 +0200

On Wed, 13 May 2020 18:21:11 +0200
Daniel Kiper <address@hidden> wrote:

> On Fri, May 08, 2020 at 06:50:47AM +0200, Hans Ulrich Niedermann
> wrote:

[... lots of gitignore stuff again ... ]

> > +/doc/mdate-sh
> > +/doc/texinfo.tex
> > +/install-sh
> > +/INSTALL
> > +/missing
> > +
> > +# Generated by "configure"
> > +Makefile
> > +.deps/  
> 
> Slash, "/", prefix?

Trailing slash just means "match directory" as opposed to "match file
or directory", so ".deps/" matches every directory named ".deps", while
the ".deps" pattern also matches files called ".deps". I'd rather such
a file showed up in "git status" so such a weird thing would be noticed.

The leading slash to match only relative to the .gitignore file's
directory is only implied with slashes somewhere within the pattern,
e.g. "doc/texinfo.tex" and "/doc/textinfo.tex" have the identical
meaning.

> > +
> > +/config.h
> > +/config.log
> > +/config.status
> > +/stamp-h1
> > +
> > +# Generated by "make"
> > +/doc/*.c.texi
> > +/doc/*.h.texi
> > +/doc/*.S.texi
> > +/doc/multiboot.info*
> > +/doc/stamp-vti
> > +/doc/version.texi
> > +
> > +*.o  
> 
> Could you be more consistent and list prefixed and not prefixed
> variants in the same order in each section?

Good point.

Uli



reply via email to

[Prev in Thread] Current Thread [Next in Thread]