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

Re: Re: A darcs that can pull from git

From
David Roundy <droundy@abridgegame.org>
Date
Apr 26, 2005, 11:06 UTC
Message-ID
<20050426110613.GB20723@abridgegame.org>
In-Reply-To
<7i4qdusxdw.fsf@lanthane.pps.jussieu.fr>
On Mon, Apr 25, 2005 at 05:12:59PM +0200, Juliusz Chroboczek wrote:
Show 5 quoted lines
> > Do you have any plans/ideas for allowing pulls directly from a
> > remote git repository?
> 
> I haven't thought about it yet.  Does anyone have any ideas about how
> to efficiently pull from git without a complete local copy?

I don't think so. My best thought so far would be to have something like a ~/.gitcache/, which would store the sha1 objects themselves, so at least we'd only end up with *one* local copy. I'm actually curious what the true git people do about this--it would be nice to share a cache. For darcs' purposes, we could prune the cache from time to time. If we're running with a darcs backend, we really only need the recent versions of files and trees.

Do the git have any suggestions about how to avoid excess downloads or excess copies of a git repository? It seems to me like it would make sense to always download sha1s to ~/.gitcache/, and then hardlink them to the current git repository, so you wouldn't end up ever downloading the same sha1 twice. Or we should use $GITCACHE/, to give the user some flexibility. But perhaps this is an already-solved problem, and I've just not noticed...

As far as other details, currently we can just walk the tree to find out what files are needed, right?

-- 
David Roundy
http://www.darcs.net
Previous: Linus TorvaldsNext: Petr Baudis
Message 5 of 7 in “A darcs that can pull from git”
  1. Juliusz ChroboczekApr 24, 2005
  2. David RoundyApr 25, 2005
  3. Juliusz ChroboczekApr 25, 2005
  4. Linus TorvaldsApr 26, 2005
  5. David RoundyApr 26, 2005
  6. Petr BaudisApr 26, 2005
  7. David RoundyApr 26, 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.