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

Re: sparse fetch, was Re: [PATCH 08/12] git-clone: support --path to do sparse clone

From
SRSverre Rabbelier <alturin@gmail.com>
Date
Jul 25, 2008, 08:14 UTC
Message-ID
<bd6139dc0807250114qc1c6cf5ufa7df0862507010d@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0807250210090.4140@eeepc-johanness>

On Fri, Jul 25, 2008 at 02:12, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 6 quoted lines
> On Thu, 24 Jul 2008, Sverre Rabbelier wrote:
>> Wouldn't that be as simple as passing a pathspec to git-rev-list? Not a
>> lot of overhead there I reckon.
>
> So the server would _not_ have to deflate the objects to inspect them?  I
> thought you knew more about Git's object database.

Nope, I did not know this. I thought that the server already had to do all that to decide what to send, since not every request asks for the same pack (someone might not have updated in 2 month, or someone might might be up to date, or anything in between).

Show 5 quoted lines
>> Just keep them?
>
> You'd still have to inspect the objects, which is way more work than the
> current code has to do.  Remember: in the optimal case, upload-pack does
> not more than just serve the existing deltas/base objects.
Ah, I can see how that would produce overhead then.
-- 
Cheers,

Sverre Rabbelier
Previous: Petr BaudisNext: Nguyen Thai Ngoc Duy
Message 15 of 16 in “git-clone: support --path to do sparse clone”
  1. 08/12 git-clone: support --path to do sparse cloneNguyễn Thái Ngọc Duy, Jul 23, 2008
  2. Jeff KingJul 24, 2008
  3. sparse fetch, was Re: [PATCH 08/12] git-clone: support --path to do sparse cloneJohannes Schindelin, Jul 24, 2008
  4. Jeff KingJul 24, 2008
  5. Johannes SchindelinJul 25, 2008
  6. James PickensJul 25, 2008
  7. Jeff KingJul 25, 2008
  8. Junio C HamanoJul 25, 2008
  9. Sverre RabbelierJul 25, 2008
  10. Nguyen Thai Ngoc DuyJul 24, 2008
  11. Petr BaudisJul 24, 2008
  12. Sverre RabbelierJul 24, 2008
  13. Johannes SchindelinJul 25, 2008
  14. Petr BaudisJul 25, 2008
  15. Sverre RabbelierJul 25, 2008
  16. Nguyen Thai Ngoc DuyJul 24, 2008

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.