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

Re: optimising a push by fetching objects from nearby repos

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
May 11, 2014, 05:21 UTC
Message-ID
<536F08C5.3010705@gmail.com>
In-Reply-To
<1399777917522.41294@student.bi.no>
On 05/11/2014 08:41 AM, Storm-Olsen, Marius wrote:
> On 5/10/2014 9:10 PM, Sitaram Chamarty wrote:
Show 5 quoted lines
>      1. Clone remote repo
>      2. Hack hack hack
>      3. Fork repo on server
>      4. Push changes to your own remote repo
> is equally efficient.

Your suggestions are good for a manual setup where the target repo doesn't already exist.

But what I was looking for was validation from git.git folks of the idea of replicating what "git clone -l" does, for an *existing* repo.

For example, I'm assuming that bringing in only the objects -- without any of the refs pointing to them, making them all dangling objects -- will still allow the optimisation to occur (i.e., git will still say "oh yeah I have these objects, even if they're dangling so I won't ask for them from the pusher" and not "oh these are dangling objects; so I don't recognise them from this perspective -- you'll have to send me those again").

[1]: for any gitolite-aware folks reading this: this involves mirroring, bringing a new mirror into play, normal repos, wild repos, and on and on...

Previous: Storm-Olsen, MariusNext: Junio C Hamano
Message 11 of 13 in “optimising a push by fetching objects from nearby repos”
  1. Sitaram ChamartyMay 10, 2014
  2. Duy NguyenMay 10, 2014
  3. brian m. carlsonMay 10, 2014
  4. milkiMay 10, 2014
  5. brian m. carlsonMay 10, 2014
  6. Junio C HamanoMay 10, 2014
  7. Sitaram ChamartyMay 11, 2014
  8. Storm-Olsen, MariusMay 11, 2014
  9. Sitaram ChamartyMay 11, 2014
  10. Storm-Olsen, MariusMay 11, 2014
  11. Sitaram ChamartyMay 11, 2014
  12. Junio C HamanoMay 11, 2014
  13. Sitaram ChamartyMay 12, 2014

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.