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

RE: Recursive add

From: Campbell, Matthew A <Matthew.Campbell_at_Relizon.com>
Date: 2004-07-08 19:58:43 CEST

> Shouldn't we be able to do something like:
>
> alias 'svn add *'='find ./ | grep -v svn | xargs svn add'
>
> ? It doesn't work though, I tried it. I'm not great with the alias
> command so maybe someone can point out whats wrong with the above? I
> suspect you can't have spaces in your aliases?
>

You're trying to make an alias with spaces in it. Think of alias as
creating a new program/command/script/function:

alias my_add_hack="find . -name .svn -prune -o -print | xargs svn add"

... should work. (and it's a bit more picky about what it filters out)

PS - your first alias probably *did* work, you just didn't call it
correctly. doing:
$ 'svn add *'

would very likely have run the alias (depending on your shell). But that's
just nasty. ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 8 20:04:25 2004

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.