From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Sebrecht Subject: Re: Newbie: Do I need to download the entire repo to work on just 1 file? Date: Mon, 23 Mar 2009 00:31:20 +0100 Message-ID: <20090322233120.GC12974@vidovic> References: <20090322231002.GA12974@vidovic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nicolas Sebrecht , git@vger.kernel.org, Anthony Rasmussen To: Sverre Rabbelier X-From: git-owner@vger.kernel.org Mon Mar 23 00:33:07 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LlXA7-0000r6-7n for gcvg-git-2@gmane.org; Mon, 23 Mar 2009 00:33:03 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756612AbZCVXb3 (ORCPT ); Sun, 22 Mar 2009 19:31:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755853AbZCVXb3 (ORCPT ); Sun, 22 Mar 2009 19:31:29 -0400 Received: from out2.laposte.net ([193.251.214.119]:9635 "EHLO out1.laposte.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753326AbZCVXb2 (ORCPT ); Sun, 22 Mar 2009 19:31:28 -0400 Received: from meplus.info (localhost [127.0.0.1]) by mwinf8211.laposte.net (SMTP Server) with ESMTP id C91937000096; Mon, 23 Mar 2009 00:31:21 +0100 (CET) Received: from ? (91-165-135-230.rev.libertysurf.net [91.165.135.230]) by mwinf8211.laposte.net (SMTP Server) with ESMTP id 56D817000086; Mon, 23 Mar 2009 00:31:21 +0100 (CET) X-ME-UUID: 20090322233121355.56D817000086@mwinf8211.laposte.net Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-me-spamlevel: not-spam X-me-spamrating: 40.000000 X-me-spamcause: OK, (-200)(0000)gggruggvucftvghtrhhoucdtuddrvdekuddrfeduucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucdlqddutddtmd Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Mar 23, 2009 at 12:10:48AM +0100, Sverre Rabbelier wrote: > > Heya, > > On Mon, Mar 23, 2009 at 00:10, Nicolas Sebrecht > wrote: > > No, you don't. Why not use the '--depth ' option of 'git clone' ? > > That depends on if he wants to push back to the original repo or not, right? It depends of what the OP means by "entire repository". You can't "cherry-pick" one single file without download the entire tree of the working directory. You can push with a truncated history. What you can't do is checkout from the history you don't have in your local repository. -- Nicolas Sebrecht