From: Alex Riesen Date: Wed, 30 Nov 2005 13:15:55 GMT Subject: Re: Question about handling of heterogeneous repositories Message-ID: <81b0412b0511300515u5d2840ccv92be6e374dd795be@mail.gmail.com> In-Reply-To: <200511301405.19541.Josef.Weidendorfer@gmx.de> On 11/30/05, Josef Weidendorfer wrote: > > BTW, how does git-mv behave for out-of-tree renaming? How about > > inter-repo renaming (remove+add)? > > git-mv will fail. The source has to appear in git-ls-files, and the > target simply is given to "git-update-index -add", which will return an > 'outside repository' error. Hmmm... git-mv should check this itself. > > To detect inter-repository renaming, one has to see both repositories. > Currently, git/cogito etc. commands only work with one repository only. This case is somewhat special: one is _guaranteed_ to see both repositories. PS: Im'restoring git@vger.kernel.org in cc-list, the discussion could be useful