From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31821 invoked by alias); 6 Oct 2009 16:21:17 -0000 Received: (qmail 31812 invoked by uid 22791); 6 Oct 2009 16:21:16 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx.meyering.net (HELO mx.meyering.net) (82.230.74.64) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Oct 2009 16:21:11 +0000 Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id B459A38B18; Tue, 6 Oct 2009 18:21:09 +0200 (CEST) From: Jim Meyering To: tromey@redhat.com Cc: "H.J. Lu" , GDB Subject: Re: gdb.git mirror is broken In-Reply-To: (Tom Tromey's message of "Tue, 06 Oct 2009 10:06:41 -0600") References: <6dc9ffc80910051730p207a14f2m5ee6ff560ea60c33@mail.gmail.com> <87ws397z1b.fsf@meyering.net> <6dc9ffc80910060608u60ccf9eal72ab51f216b7f75c@mail.gmail.com> <87ocok4nvz.fsf@meyering.net> Date: Tue, 06 Oct 2009 16:21:00 -0000 Message-ID: <87pr90334a.fsf@meyering.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00106.txt.bz2 Tom Tromey wrote: >>>>>> "Jim" == Jim Meyering writes: > Jim> Since some directories are shared between projects, one way would > Jim> be to make each directory into its own git repository. > Jim> Then, a separate gdb.git repository would include them > Jim> via a git submodule. > > I thought that submodules could not be used to share files in the > top-level directory. This is why I think submodules are not a viable > solution for src -- anything in that directory is shared, not only by > all the src projects, but also by gcc. You can put the top-level files in their own repository and make that a submodule, then have either a VC'd symlink for each file (ugly, and not as maintainable, IMHO) or a bootstrap/autogen.sh-style script that creates the links.