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

Re: Ignore patterns should not be case sensitive (usability)

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Mon, 24 Mar 2008 19:18:06 -0500

On Mar 24, 2008, at 15:18, Erik Huelsmann wrote:

> I'd like to point out all this discussion is moot: the current
> interface for svn:ignore doesn't allow for case-insensitive patterns
> other than the glob ones already provided.
>
> The svn:ignore property is a public interface, meaning that we can't
> change it until 2.0. Adding more properties which 'do almost the same'
> is definitely out of line with anything the Subversion developers have
> done so far and probably only serves to confuse.

Not *all* this discussion is moot... There have been several
suggestions in this thread which could be implemented without
breaking backward compatibility.

For example, the suggestion of introducing a mode for ignores, which
is set to case-sensitive by default, but which can be changed to case-
insensitive by writing a line like "option: caseinsensitive" or
"option: -casesensitive" or "option: casesensitive=no".

http://svn.haxx.se/users/archive-2008-03/0780.shtml

I agree with Karl that such a line is highly unlikely to be used in
existing ignore rules such that it should not affect backward
compatibility in practice.

http://svn.haxx.se/users/archive-2008-03/0781.shtml

The next trick is to find a solution for global-ignores, since it's
specified all on one line. Either devise a syntax for this option
argument that has no whitespace ("option:caseinsensitive"?) which can
thus be used in the global-ignores specification, or an additional
config option specifying whether global-ignores are case-sensitive
(default) or case-insensitive ("global-ignores-are-case-sensitive =
no"?) or an additional config option for specifying case-insensitive
global-ignores ("global-ignores-case-insensitive = *.bak"?) in
addition to the existing global-ignores key for case-sensitive matches.

Or maybe global-ignores could be changed into a section by itself,
just like auto-props is:

[global-ignores]
*.bak
*.o
*.lo

I like this best, as this would have the advantage that it could then
use exactly the same syntax as svn:ignore for setting the case
sensitivity mode. Specifying global-ignores the "old" way would still
be supported for backwards compatibility but would remain case-
sensitive.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-25 01:18:59 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.