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

Re: [PATCH] Transitively read alternatives

From
Jakub Narebski <jnareb@gmail.com>
Date
May 7, 2006, 18:28 UTC
Message-ID
<e3le7q$eli$1@sea.gmane.org>
In-Reply-To
<20060507181920.GC23738@admingilde.org>
Martin Waitz wrote:
Show 6 quoted lines
> When adding an alternate object store then add entries from its
> info/alternates files, too.
> Relative entries are only allowed in the current repository.
> Loops and duplicate alternates through multiple repositories are ignored.
> Just to be sure that nothing breaks it is not allow to build deep
> nesting levels using info/alternates.
Show 5 quoted lines
> +     if (depth > 5) {
> +             error("%s: ignoring alternate object stores, nesting too deep.",
> +                             relative_base);
> +             return;
> +     }
Please, no magic numbers. Use preprocesor "constants" for that.
-- 
Jakub Narebski
Warsaw, Poland
Previous: Martin Waitz
Message 2 of 2 in “Transitively read alternatives”
  1. Transitively read alternativesMartin Waitz, May 7, 2006
  2. Jakub NarebskiMay 7, 2006

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.