[PATCH] sim: start a gitignore

Mike Frysinger vapier@gentoo.org
Wed Dec 22 15:36:00 GMT 2010


On Tuesday, December 21, 2010 23:39:44 Joel Brobecker wrote:
> > diff --git a/sim/.gitignore b/sim/.gitignore
> > new file mode 100644
> > index 0000000..1322a87
> > --- /dev/null
> > +++ b/sim/.gitignore
> > @@ -0,0 +1,7 @@
> > +/*/gentmap
> > +/*/run
> > +/*/targ-*
> > +/*/tconfig.h
> > +/*/version.c
> > +
> > +/common/cconfig.h
> 
> Is this really correct?

yes

> The '*' matches any character except
> the directory separator, so I don't see how this would work unless
> the file was inside a subdirectory at root level.

the file lives at sim/.gitignore.  the leading / anchors to where the 
.gitignore file lives and not the actual root directory.  thus /*/gentmap will 
ignore sim/bfin/gentmap and sim/arm/gentmap and ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20101222/9cffb7d8/attachment.sig>


More information about the Gdb-patches mailing list