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

Re: [PATCH RFC 1/3] cat-file: extract the transport ownership from get_remote_info()

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 28, 2026, 13:42 UTC
Message-ID
<xmqq33tqdjr0.fsf@gitster.g>
In-Reply-To
<DMGGJIMVUXEG.WJSWR3E4POW1@gmail.com>
"Pablo Sabater" <pabloosabaterr@gmail.com> writes:
Show 9 quoted lines
> But with that in mind, what if in the future there's a transport without
> smart_options that does support object-info? The smart_options check is
> there because of "this transport can't do object-info", and nothing
> on the object-info path reads smart_options from what I checked.
>
> So I'm going to drop that die(). Later in the code there's already a 
> check on transport_fetch_object_info(), which looks for 
> fetch_object_info in the transport's vtable. It's a bit later, but it 
> checks the real capability and it will give less trouble in the future. 
That design decision makes a lot of sense.  Thanks.
Previous: Pablo SabaterNext: Pablo Sabater
Message 7 of 12 in “cat-file: make remote-object-info request in batches”
  1. 0/3 cat-file: make remote-object-info request in batchesPablo Sabater, Oct 27, 2026
  2. 1/3 cat-file: extract the transport ownership from get_remote_info()Pablo Sabater, Oct 27, 2026
  3. Junio C HamanoOct 27, 2026
  4. Pablo SabaterOct 27, 2026
  5. Junio C HamanoOct 28, 2026
  6. Pablo SabaterOct 28, 2026
  7. Junio C HamanoOct 28, 2026
  8. 2/3 cat-file: make remote-object-info request in batchesPablo Sabater, Oct 27, 2026
  9. 3/3 cat-file: add --remote-max-batch optionPablo Sabater, Oct 27, 2026
  10. Junio C HamanoOct 27, 2026
  11. Pablo SabaterOct 27, 2026
  12. Junio C HamanoOct 27, 2026

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.