threads / discuss / 15465

gitignore patterns

Subject: gitignore patterns

## tl;dr

3 messages between Sep 9, 2008 and Sep 9, 2008.

replies: 2people: 2as markdown or json

Randy.Dunlap· Sep 9, 2008, 22:23 UTC · lore
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· Sep 9, 2008, 23:25 UTC · re: Randy.Dunlap · lore

Re: gitignore patterns

"Randy.Dunlap" <rdunlap@xenotime.net> writes:
Show 10 quoted lines
> 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· Sep 9, 2008, 23:28 UTC · re: Junio C Hamano · lore

Re: gitignore patterns

On Tue, 9 Sep 2008, Junio C Hamano wrote:
Show 16 quoted lines
> "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

← back to recent threads