On Thu, 2010-12-02 at 00:31 -0600, Daniel Shahaf wrote:
> Ryan Schmidt wrote on Wed, Dec 01, 2010 at 13:33:50 -0600:
> >
> > On Dec 1, 2010, at 13:31, Steve Cohen wrote:
> >
> > > The build process of the application I am bringing under svn creates a number of unix binary executables that have no extension : for example
> > >
> > > abcde
> > > fghqp
> > >
> > > etc.
> > >
> > > I believe that * will match any files with or without periods so it isn't suitable. Is there a pattern specifier that would embrace all files without an extension?
> >
> > I can't think of a way to do that.
> >
>
> svn:ignore patterns are apr_fnmatch() patterns, and apr_fnmatch() does
> accept regex-like [a-z] expressions in its patterns, so you could try
>
> [a-z][a-z][a-z][a-z][a-z]
>
> to ignore all 5-lowercase-character filenames. :-)
If it accepts regex, why not just use the original criteria where it
excludes extensions:
[^.]*
That should exclude '.' from being a character anywhere in the filename
if I'm reading the comment at
http://apr.apache.org/docs/apr/1.3/apr__fnmatch_8h-source.html correctly
If it was a full regex, then you might have to do [^\.]* since '.' would
be a special character then.
>
> >
> > > Alternatively, one common differentiating aspect of these files is that they have executable privileges. Being able to svn:ignore based on this would be a nice feature to have.
> >
> > Unfortunately that feature doesn't exist either.
> >
> >
Received on 2010-12-02 15:44:19 CET