This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sim: start a gitignore


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]