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

RE: AW: AW: Re: Properties and svn:ignore

From: Gerald Britton <gerald.britton_at_gmail.com>
Date: Fri, 11 Nov 2011 06:04:05 -0800 (PST)

> Hi,
> Von: Gerald Britton [mailto:gerald dot britton at gmail dot com]
> > > As there are no emtpy file names allowed by the operating systems I know, empty lines won't match any file name, so they should work.
> > consider:
> >
> > jerryb1_at_ubuntu:/tmp$ cat > \
> > foo
> Are you sure you're creating a file with an empty name? And not a file with a blank or a newline as name?

Yes. that's exactly what I'm doing. My question was if blank lines were allowed in the ignore list. By that I meant vertical white space. All these would fit (using '\n' to show where the line ends):



However, Windows has restrictions on filename characters (http://support.microsoft.com/kb/177506):

A filename cannot contain any of the following characters:
\ / : * ? " < > |

Now thinking about what I want to do: insert comments in the ignore list, could I begin a line with something that will both call out the command and not match a valid filename?

/ and \ are used as directory separators so they're a bad idea.

* and ? are globbing characters, so they're out.

" is used to mark beginning and end of filenames containing spaces. Forget that one.

< > and | are used for pipes so might be confusing

that leaves the :, colon. It's allowed in unix filenames but uncommon (probably even rare. I've never seen it used deliberately). So If I used that in my ignore list, I might have something like:

: executables

: generated by IDE

Make sense? Any better ideas?


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-11-11 15:04:11 CET

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

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