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

Re: [PATCH 1/2] clone: add disassociate alias to dissociate option

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Feb 24, 2015, 22:00 UTC
Message-ID
<54ECF482.3010303@alum.mit.edu>
In-Reply-To
<xmqqbnkjqdko.fsf@gitster.dls.corp.google.com>
On 02/24/2015 09:06 PM, Junio C Hamano wrote:
Show 10 quoted lines
> Michael Haggerty <mhagger@alum.mit.edu> writes:
>> By the way, once we have stopped thinking about this feature as
>> "--reference" and then "--dissociate", it becomes obvious that a nice
>> generalization would be to allow *any* repository (including remote
>> ones) to serve as the object donor.
> 
> As I do not think of a workable approach to implement such a
> mechanism, I'd refrain from being irresponsible and say "Yeah,
> that's a neat idea", which would make me sound like clueless "me
> too, why doesn't Git do that?" crowd.

I think this would be done by effectively creating a clone of the nearby repository then a fetch of the distant one, with some reference shuffling between the steps. If the nearby repository contains far more objects than the user really wants, then the initial clone will be wasteful. But since the use case will probably be that the nearby repository is (1) a mirror of the distant repo, and (depending on how old it is) contains approximately a subset of the objects in the distant repository, and (2) much faster to work with than the distant repo, I think even this crude approach would often be a win.

Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu
Previous: Junio C HamanoNext: Matt Whiteley
Message 9 of 11 in “--disassociate alias for --dissociate clone option”
  1. --disassociate alias for --dissociate clone optionMatt Whiteley, Feb 20, 2015
  2. 1/2 clone: add disassociate alias to dissociate optionMatt Whiteley, Feb 20, 2015
  3. Jeff KingFeb 21, 2015
  4. Junio C HamanoFeb 21, 2015
  5. Jeff KingFeb 21, 2015
  6. Junio C HamanoFeb 22, 2015
  7. Michael HaggertyFeb 24, 2015
  8. Junio C HamanoFeb 24, 2015
  9. Michael HaggertyFeb 24, 2015
  10. 2/2 clone: Realign lines near disassociate optionMatt Whiteley, Feb 20, 2015
  11. Eric SunshineFeb 20, 2015

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.