> -----Original Message-----
> From: Rob Hubbard [mailto:rob.hubbard_at_softel.co.uk]
> Sent: 22 January 2009 09:26
> To: Henrik Sundberg; users_at_subversion.tigris.org
> Subject: RE: How to specify global-ignores containing space?
> Hello Henrik,
> I've had a similar problem. I wanted to exclude the Windoze 'Copy of
> ...' files, which contain spaces, even if the original files do not. I
> had the same problem: not being able to specify a space character. I
> tried the following, none of which worked:
> ' ' - because, like any whitespace, it's interpreted as a
> separator in the list
> '" "'
> '\ '
> '[ ]' - because it's a glob, not a regex
> '\s' - ditto
> '[\s]' - ditto
> '[[:space:]]' - ditto
> These did work (although they will match and therefore ignore a little
> too much):
> '?' - i.e. glob metacharacter meaning any single character
> (including a single space)
> '[^a-zA-Z0-9_]' - i.e. a glob character class for a single
> character containing most other valid filename characters
'[!a-zA-Z0-9_]' - means the same
> opted for '?', although '[^a-zA-Z0-9_]' is slightly better
> in terms of
> what it matches, because '?' is so much easier to read.
Those would have been
where ??* in glob language means at least two characters (of any
Those match e.g.
'Copy of my file.txt'
'Copy (2) of my file.txt'
'Copy (99) of my file.txt'
> Thus to ignore the 'Copy of ...' files, I used the following patterns:
The 'simpler' alternatives would be
> If you wish to ignore certain 'user' files, I've found it
> useful to put
> a couple of underscores near the end of the filename to mean 'ignore
> me'. For example:
> The patterns for these are:
> Hope this helps (a bit), though it's not a full answer,
> Rob Hubbard
> > -----Original Message-----
> > From: Henrik Sundberg [mailto:storangen_at_gmail.com]
> > Sent: 21 January 2009 14:53
> > To: users_at_subversion.tigris.org
> > Subject: How to specify global-ignores containing space?
> > I tried to add "My File" to the global-ignores, but that didn't work
> > (i.e. global-ignores = "My File").
> > Changing to My*File (i.e. global-ignores = My*File) worked though.
> > How can space be a part of what to ignore?
This message has been independently scanned for the Softel Group and cleared of containing viruses and other malicious data.
Powering Television Beyond the Video (TM)
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-22 10:36:24 CET