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

Re: Git v2.11.0 breaks max depth nested alternates

From
Jeff King <peff@peff.net>
Date
Dec 5, 2016, 07:14 UTC
Message-ID
<20161205071431.cf3oy7nceyb7hggw@sigill.intra.peff.net>
In-Reply-To
<E3C2AF2A-FE07-4C94-B549-3BDAF9B3DB5D@gmail.com>
On Sun, Dec 04, 2016 at 01:37:00AM -0800, Kyle J. McKay wrote:
Show 9 quoted lines
> On Dec 3, 2016, at 20:55, Jeff King wrote:
> 
> > So I do think this is worth dealing with, but I'm also curious why
> > you're hitting the depth-5 limit. I'm guessing it has to do with hosting
> > a hierarchy of related repos. But is your system then always in danger
> > of busting the 5-limit if people create too deep a repository hierarchy?
> 
> No we check for the limit.  Anything at the limit gets broken by the
> quarantine change though.

OK. So the limit is an issue for your system, but one that you're able to deal gracefully with (and the quarantine change makes that a lot harder). I buy that line of reasoning.

Show 6 quoted lines
> The patch is a step on that road.  It doesn't go that far but all it would
> take is connecting the introduced variable to a config item.  But you still
> need to bump it by 1 during quarantine operations.  Such support would even
> allow alternates to be disallowed (except during quarantine).  I wonder if
> there's an opportunity for further pack operation optimizations in such a
> case (you know there are no alternates because they're not allowed)?

I doubt it. We look at the list of alternates early on, and in most cases there aren't any. So any optimization there can be done already at that point.

The only optimization I know if in that area is 56dfeb626 (pack-objects: compute local/ignore_pack_keep early, 2016-07-29), which works already.

> All true.  And I had similar thoughts.  Perhaps we should add your comments
> to the patch description?  There seems to be a trend towards having longer
> patch descriptions these days... ;)

Feel free to pick out anything that's useful and add it in verbatim or rephrased, whichever is more convenient.

> You took the words right out of my mouth...   I guess I need to work on
> doing a better job of dumping my stream-of-thoughts that go into a patch
> into the emails to the list.

It's a lot easier when you're the reviewer, because you don't start reading through the commit-message with a full understanding of the problem yet. :)

> Most all of your comments could be dumped into the patch description as-is
> to pimp it out some.  I have no objection to that, even adding an
> "Additional-analysis-by:" (or similar) credit line too.  :)

Sure. I don't really need credit, or even just "reviewed-by" is fine. Talking and generating a shared understanding of the problem is part of the review process.

-Peff
Previous: Kyle J. McKayNext: Philip Oakley
Message 4 of 7 in “Git v2.11.0 breaks max depth nested alternates”
  1. Kyle J. McKayDec 4, 2016
  2. Jeff KingDec 4, 2016
  3. Kyle J. McKayDec 4, 2016
  4. Jeff KingDec 5, 2016
  5. Philip OakleyDec 4, 2016
  6. Jeff KingDec 5, 2016
  7. Philip OakleyDec 5, 2016

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.