info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursive add


From: Spiro Trikaliotis
Subject: Re: recursive add
Date: Tue, 8 Mar 2005 13:00:48 +0100
User-agent: Mutt/1.5.6+20040907i

Hello,

an answer to an older post:

* On Tue, Mar 01, 2005 at 10:59:32AM -0800 Wei Shi wrote:
 
> Maybe this question has been brought up before.  Is
> there a recursive add command in CVS?

I'm not sure what you mean with "recursive add". Possibly, the following
commands might accomplish what you want to do:

$ cvs add `find . -type d`
$ cvs add `find . -type f`

(I expect you are running on a Unix box, or with Cygwin on Windows)

If there are too much files/directories, you might encounter problems
with the maximum line length of the shell interpreter. In this case,
replacing the second command with

$ find . -type f -exec cvs add \{\} \;

is a good replacement, neglecting the fact this this command will be
much slower for a remote repository.

HTH,
   Spiro.

-- 
Spiro R. Trikaliotis                              http://cbm4win.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]