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

Re: 'svn add *' ignores global-ignores -- misfeature?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-04-01 20:49:03 CEST

On Apr 1, 2005, at 11:24 AM, Chad Whitacre wrote:

> Hey all,
>
> I've learned by experience and in #svn that 'svn add *' ignores the
> global-ignores declaration in config, ostensibly because we want some
> way to add *everything*. However, this does't seem like the best
> semantics: shouldn't add use --no-ignore to provide for ignoring
> global-ignores when that behavior is desired?

Running 'svn add *' is the same as running 'svn add foo bar baz bop
...".

And, when you explicitly name a target, 'svn add' will add it no matter
what, even if it's in the global-ignores.

What you want to do is run 'svn add .'. Then everything in '.' will be
scheduled for addition, skipping things that are already under version
control, and skipping global-ignores. If you want the command to
recurse into version-controlled directories, add '--force'.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 1 20:53:16 2005

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.