git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Question about handling of heterogeneous repositories

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Nov 30, 2005, 14:40 UTC
Message-ID
<200511301540.34776.Josef.Weidendorfer@gmx.de>
In-Reply-To
<Pine.LNX.4.63.0511301457040.2284@wbgn013.biozentrum.uni-wuerzburg.de>
On Wednesday 30 November 2005 14:58, Johannes Schindelin wrote:
Show 15 quoted lines
> Hi,
> 
> On Wed, 30 Nov 2005, Alex Riesen wrote:
> 
> > On 11/30/05, Josef Weidendorfer <Josef.Weidendorfer@gmx.de> wrote:
> > >
> > > 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.
> 
> It is even more so: it is guaranteed that git cannot reconstruct this 
> as a move operation.

Say it in another way: because currently, git commands only work in the scope of one repository, there is no need to want to detect an inter-repository rename.

Git has no explicit support for renaming, but can do it. Why should it be a problem to write a tool which is able to detect inter-repository renames? Still, such a search probably would be very expensive.

git-mv could support this. Additional to deleting from one repository and adding to the new, it could generate a remark for the commit message, like:

 Added file xxx is from remote repo '/path/myrepo' with name 'yyy'
 (file SHA1: 123445... from remote commit SHA1: 345667...)

This info could be interesting both for humans and a history browsing tool. The tool still would have to know where to look for repo '/path/myrepo'. It could also work for moving subdirectories (ie. trees instead of files).

Josef
Previous: Johannes SchindelinNext: Alex Riesen
Message 8 of 11 in “Question about handling of heterogeneous repositories”
  1. Alex RiesenNov 22, 2005
  2. Andreas EricssonNov 22, 2005
  3. Alex RiesenNov 22, 2005
  4. Petr BaudisNov 27, 2005
  5. Alex RiesenNov 29, 2005
  6. Alex RiesenNov 30, 2005
  7. Johannes SchindelinNov 30, 2005
  8. Josef WeidendorferNov 30, 2005
  9. Alex RiesenNov 30, 2005
  10. Josef WeidendorferNov 30, 2005
  11. Alex RiesenDec 1, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.