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

Re: Regression in 8d92fb292706 ("dir: replace exponential algorithm with a linear one")

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 7, 2021, 02:19 UTC
Message-ID
<Ya7ElLg96aV2iySI@camp.crustytoothpaste.net>
In-Reply-To
<20211206121639.o4a4tdzlijnhnjqz@pengutronix.de>
On 2021-12-06 at 12:16:39, Uwe Kleine-König wrote:
> Is this something that needs fixing?

I don't think so. The old behavior was to add a file that's under a different repository (subdir), which is bizarre and at least to me, unexpected. I believe the new behavior causes us to not add the file because it belongs to a different repo, which seems correct.

I have no clue how we could practically check out the file in the first situation if subdir remains a git repository. Even if it does work, it is likely to lead to confusing behavior when the index for subdir is not in sync with the index for the main repo.

If I'm missing something here, though, please do point it out.
-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Uwe Kleine-KönigNext: Elijah Newren
Message 2 of 4 in “Regression in 8d92fb292706 ("dir: replace exponential algorithm with a linear one")”
  1. Uwe Kleine-KönigDec 6, 2021
  2. brian m. carlsonDec 7, 2021
  3. Elijah NewrenDec 7, 2021
  4. Uwe Kleine-KönigDec 7, 2021

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.