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

Re: [PATCH] doc: explain why file: URLs and bundles don't mix

From
Jeff King <peff@peff.net>
Date
May 14, 2019, 09:30 UTC
Message-ID
<20190514093023.GB11679@sigill.intra.peff.net>
In-Reply-To
<20190513165140.vq225fscfvemol7k@x220.qyliss.net>
On Mon, May 13, 2019 at 04:54:55PM +0000, Alyssa Ross wrote:
Show 15 quoted lines
> > I think what is closer to the reaility is that we check if the
> > source is a bundle when the local filesystem path is used and try to
> > clone from the bundle, before using the local filesystem path as a
> > directory we can "clone --local" from.  On the other hand, when the
> > <scheme>://<path> syntax is used, we do not even bother seeing if
> > the named resource is a bundle, or if --local optimization is
> > possible (because we do not bother seeing if the named resource is a
> > local filesystem entity, either).
> 
> Would the following work better for you?
> 
> When cloning, the former will check to see if the source is a bundle.
> If it is, it will clone from the bundle, otherwise it will behave as if
> given --local. The latter performs neither of these checks, and
> therefore does not support bundles.

FWIW, I like that much better than the original proposal. I think it would also be OK to say something like: ...does not support bundles (but may in the future).

-Peff
Previous: Alyssa RossNext: Jeff King
Message 4 of 5 in “doc: explain why file: URLs and bundles don't mix”
  1. doc: explain why file: URLs and bundles don't mixAlyssa Ross, May 13, 2019
  2. Junio C HamanoMay 13, 2019
  3. Alyssa RossMay 13, 2019
  4. Jeff KingMay 14, 2019
  5. Jeff KingMay 14, 2019

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.