# gitignore patterns

3 messages from 2008-09-09 to 2008-09-09. Participants: Randy.Dunlap, Junio C Hamano.
Thread: https://gitlist.dev/t/15465

## Randy.Dunlap, 2008-09-09 22:23

Subject: gitignore patterns
Message-ID: <Pine.LNX.4.64.0809091521120.15561@shark.he.net>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0809091521120.15561%40shark.he.net

```
Hi,

In the kernel tree, I see 2 .gitignore files that use "+pattern":

./arch/blackfin/include/asm/.gitignore:+mach
./arch/blackfin/boot/.gitignore:+vmImage

However, I can't find anything about '+' on the gitignore(5) man page
at http://www.kernel.org/pub/software/scm/git/docs/gitignore.html .

Does the '+' mean something special or is it just a character in the
filename/dir pattern?

Thanks,
-- 
~Randy

```

## Junio C Hamano, 2008-09-09 23:25

Subject: Re: gitignore patterns
Message-ID: <7vprnc3nr7.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vprnc3nr7.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <Pine.LNX.4.64.0809091521120.15561@shark.he.net>

```
"Randy.Dunlap" <rdunlap@xenotime.net> writes:

> In the kernel tree, I see 2 .gitignore files that use "+pattern":
>
> ./arch/blackfin/include/asm/.gitignore:+mach
> ./arch/blackfin/boot/.gitignore:+vmImage
>
> However, I can't find anything about '+' on the gitignore(5) man page
> at http://www.kernel.org/pub/software/scm/git/docs/gitignore.html .
>
> Does the '+' mean something special or is it just a character in the
> filename/dir pattern?

AFAIR, this should be just a shell glob fnmatch(3) understands, so perhaps
their build procedure leaves temporary droppings in a file whose filename
is prefixed with './+'?

```

## Randy.Dunlap, 2008-09-09 23:28

Subject: Re: gitignore patterns
Message-ID: <Pine.LNX.4.64.0809091627550.15561@shark.he.net>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0809091627550.15561%40shark.he.net
In-Reply-To: <7vprnc3nr7.fsf@gitster.siamese.dyndns.org>

```
On Tue, 9 Sep 2008, Junio C Hamano wrote:

> "Randy.Dunlap" <rdunlap@xenotime.net> writes:
> 
> > In the kernel tree, I see 2 .gitignore files that use "+pattern":
> >
> > ./arch/blackfin/include/asm/.gitignore:+mach
> > ./arch/blackfin/boot/.gitignore:+vmImage
> >
> > However, I can't find anything about '+' on the gitignore(5) man page
> > at http://www.kernel.org/pub/software/scm/git/docs/gitignore.html .
> >
> > Does the '+' mean something special or is it just a character in the
> > filename/dir pattern?
> 
> AFAIR, this should be just a shell glob fnmatch(3) understands, so perhaps
> their build procedure leaves temporary droppings in a file whose filename
> is prefixed with './+'?

OK, I'll ask the blackfin developers/maintainers about it.

Thanks.
-- 
~Randy

```
