[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: pattern for specifying svn:ignore for files without extension

From: Luke Imhoff <luke_at_cray.com>
Date: Thu, 2 Dec 2010 08:43:30 -0600

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.