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

Re: cg-pull to pull branches, not the whole repository

From
Petr Baudis <pasky@suse.cz>
Date
Sep 14, 2005, 23:34 UTC
Message-ID
<20050914233412.GG2936@pasky.or.cz>
In-Reply-To
<1126733516.10827.54.camel@dv>

Dear diary, on Wed, Sep 14, 2005 at 11:31:56PM CEST, I got a letter where Pavel Roskin <proski@gnu.org> told me that...

> Hello!
Hello,
> I believe cg-pull should be changed to pull only the objects relevant to
> the branch rather than the whole repository.

well, that should be the case for all the methods but rsync. Actually, it's not the case for local pulls now either, because git-local-pull wasn't able to deal with packs, but I think that's fixed by now so I'll reenable that.

Show 5 quoted lines
> Ideally, cogito should not rely on the server being able to list
> directories.  This would allow support more protocols and servers, e.g.
> http servers without directory listings.  Unfortunately, listings are
> still needed to get refs/tags and refs/heads.  Any fix for that would
> involve git core, and I don't see an elegant fix.

Well, there's that update-server-info thing. It'd be nice if git-send-pack could call that automagically or something, so it's kept up-to-date. But I have no idea about how expensive can the command actually be.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Pavel Roskin
Message 4 of 4 in “cg-pull to pull branches, not the whole repository”
  1. Pavel RoskinSep 14, 2005
  2. Junio C HamanoSep 14, 2005
  3. Pavel RoskinSep 16, 2005
  4. Petr BaudisSep 14, 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.