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

Re: Feature request: svn ignore

From: Martin Fuchs <fuchs.martin_at_gmail.com>
Date: 2005-09-11 15:54:45 CEST

2005/9/11, Ryan Schmidt <subversion-2005@ryandesign.com>:
> When I think about some of the other subcommands, I notice that the
> directory on which they operate is specified last, and that if this
> is omitted, they operate on . by default. In your svn ignore
> proposal, the directory is specified first, which is inconsistent and
> doesn't allow this (probably oft-desired) default case. To fix it
> would require, however, that you only specify one glob per svn ignore
> invocation.

Correct. That is why I chose to put the directory at the first
position. Another possibility would be the following syntax:

svn ignore [-d path] <file pattern list>

This would make the target directory optional. In the common case
(modifying the properties of the current directory) one can just omit
it:

svn ignore Debug Release "*.log" "*.exe" "*.pdb" "*.map" "*.ncb" "*.opt"

> In any case, you'll have to protect the glob with quotes, else the
> shell will want to expand it before passing it to svn ignore.

Correct. That's at least the standard behaviour of shell commands on
Unix systems.

> If you can add entries to svn:ignore this way, do we also need a way
> to remove entries from there?
>
> svn unignore '*.log'
> or
> svn remember '*.log'

We could just use an option like "-u" to switch from "ignore" to
"unignore" mode:

svn ignore [-d path] -u <file pattern list>

Regards,

     Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 11 15:56:18 2005

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