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

Re: [PATCH 02/11] gitignore: Remove entries duplicating global entries



On Thu, Sep 10, 2020 at 11:20:11AM +0200, Jan Beulich wrote:
> On 02.09.2020 00:02, Elliott Mitchell wrote:
> > --- a/.gitignore
> > +++ b/.gitignore
> > @@ -1,6 +1,5 @@
> >  .hg
> >  .*.cmd
> > -.*.tmp
> 
> When the shell expands *.tmp, any .*.tmp won't match. Is this different
> for git? (Probably it is, seeing that we only have *.d and *.d2, but I'd
> still like to double check.)

`git --version` => "git version 2.20.1"
`git check-ignore -vn .foo.tmp`  =>  ".gitignore:23:*.tmp     .foo.tmp"
`git check-ignore -vn foo.tmp`   =>  ".gitignore:23:*.tmp     foo.tmp"
`git check-ignore -vn .tmp`      =>  ".gitignore:23:*.tmp     .tmp"
`git check-ignore -vn .foo`      =>  "::      .foo"

A shell will not expand "*" at the start to a filename starting with a
period, but `git` will (at least as of the version I've got).


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg@xxxxxxx  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.