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

Re: Relative alternates question

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 10, 2007, 19:38 UTC
Message-ID
<7vfy2rrxh1.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070810164556.GB3442@efreet.light.src>
Jan Hudec <bulb@ucw.cz> writes:
> And my question is, is there any good reason to reject relative paths in
> alternates of an alternate? From what I see the recursive call to
> link_alt_odb_entries (via link_alt_odb_entry and read_info_alternates) has
> all the information it needs to resolve such paths.

As long as you are careful not to introduce loops that cause the rest of the code to add the same thing twice, I do not think there is anything fundamentally wrong with relative alternate paths. The original motivation of that check was not much more than "let's not complicate our lives by supporting it", I think.

Previous: Jan Hudec
Message 2 of 2 in “Relative alternates question”
  1. Jan HudecAug 10, 2007
  2. Junio C HamanoAug 10, 2007

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.