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

Re: [DESIGN] Enhanced svn:ignore syntax

From: Vincent Starre <vstarre_at_comcast.net>
Date: 2006-01-17 23:54:56 CET

Branko Čibej wrote:

> Max Bowsher wrote:
>> Hash: SHA1
>> The thread "inverse of svn:ignore property" raised issues with
>> inflexibility of the svn:ignore syntax. In response, here is a proposal
>> for an enhanced syntax.
>> Observation: In the current syntax there is no legal way to use a '/' in
>> ignore items, since they must apply to direct children of the directory.
>> Therefore we can use '/' as a signifier of some extended syntax without
>> rendering any old ignore props subject to changed interpretation.
>> Desired features:
>> * Selectively unignore patterns, for when the undesired files cannot be
>> concisely specified, but the desired ones can.
>> * Patterns applying only to directories or only to files.
>> * Extensibility for future features.
>> Proposal, by example:
>> Example 1:
>> !/*.cat
>> !/*.dog
>> *
> Hm. There'se already a well-established syntax for decorating regular
> expressions (or globs, in our case); sed, perl, etc. use it; so maybe
> the flags should follow the pattern, e.g.,
> *.cat/!
> (One feature that lots of people will come shouting for are
> case-insensitive ignore patterns, and perhaps true regular expressions
> in the svn:ignore prop.)
> -- Brane
I might as well throw in a desire for comments.
Currently I add comments to svn:ignore by begining a line with # and
assuming no file will actually be called "# Generated by Make".
Sloppiness aside (it's effective, no reason to call it sloppy), the
ability to add comments in-line is still desireable. Adding an option
"*" in addition to "!" would allow C-style-looking comments:
somefile /* this is only required by windows and can be easily
regenerated */

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 18 01:17:09 2006

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

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