From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jon Smirl" Subject: Re: Tracking CVS Date: Thu, 22 Jun 2006 22:18:32 -0400 Message-ID: <9e4733910606221918r775f49f0l4929f4703281115f@mail.gmail.com> References: <9e4733910606220541y15d66fa6t33ab0c80ae05f764@mail.gmail.com> <20060622135831.GB21864@pasky.or.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: git X-From: git-owner@vger.kernel.org Fri Jun 23 04:18:39 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FtbFk-00083K-IR for gcvg-git@gmane.org; Fri, 23 Jun 2006 04:18:37 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750829AbWFWCSd (ORCPT ); Thu, 22 Jun 2006 22:18:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750831AbWFWCSd (ORCPT ); Thu, 22 Jun 2006 22:18:33 -0400 Received: from nz-out-0102.google.com ([64.233.162.199]:59819 "EHLO nz-out-0102.google.com") by vger.kernel.org with ESMTP id S1750829AbWFWCSc (ORCPT ); Thu, 22 Jun 2006 22:18:32 -0400 Received: by nz-out-0102.google.com with SMTP id l1so648824nzf for ; Thu, 22 Jun 2006 19:18:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QXhxlP0KoRMAeEBLZp8qVhP8KoitzR0UovTIJWpqDFxNnPpzqc/Od1Li3zapwhpJmsTzMHqZbaQ8nDNeaQugLzpG26OJp+gcjB42zct7lOc9o9YOQMWAPnE7UObIPfQTlYiLhSJ0802rYyA/X1a6qFdg0kSaLNjNY4SwamA9aHU= Received: by 10.36.252.42 with SMTP id z42mr2993027nzh; Thu, 22 Jun 2006 19:18:32 -0700 (PDT) Received: by 10.36.37.5 with HTTP; Thu, 22 Jun 2006 19:18:32 -0700 (PDT) To: "Petr Baudis" In-Reply-To: <20060622135831.GB21864@pasky.or.cz> Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: On 6/22/06, Petr Baudis wrote: > Dear diary, on Thu, Jun 22, 2006 at 02:41:16PM CEST, I got a letter > where Jon Smirl said that... > > I'm tracking cvs using this sequence. > > > > cvs update > > cg rm -a > > cg commit > > cg add -r . > > cg commit > > > > Is there a way to avoid the two commits? If you do the add with out > > the intervening commit it just adds the files back. > > I think the most straightforward way is: > > cvs update > cg-rm -a > cg-status -wns \? | xargs cg-add > cg-commit This doesn't pick up new directories with recursion. > > If you want to be careful about filenames polluted by non-newline > whitespaces, > > cg-status -wns \? | tr '\n' '\0' | xargs -0 cg-add > > If you want to be safe even with filenames containing newlines, you need > to go at the Git level: > > git-ls-files -z --others | \ > xargs -0 git-update-index --add -- > > Perhaps we might make a special command which would sync the index set > with the working copy set... > > -- > Petr "Pasky" Baudis > Stuff: http://pasky.or.cz/ > A person is just about as big as the things that make them angry. > -- Jon Smirl jonsmirl@gmail.com