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

Re: [PATCH v2] fetch: support hideRefs to speed up connectivity checks

From
EWEric Wong <e@80x24.org>
Date
Feb 16, 2023, 01:32 UTC
Message-ID
<20230216013237.M252435@dcvr>
In-Reply-To
<Y+rmlcRoP1aMioTC@coredump.intra.peff.net>
Jeff King <peff@peff.net> wrote:
Show 26 quoted lines
> On Mon, Feb 13, 2023 at 11:30:35PM +0000, Philip Oakley wrote:
> > On 13/02/2023 20:53, Jeff King wrote:
> > > On Sun, Feb 12, 2023 at 09:04:26AM +0000, Eric Wong wrote:
> > >
> > >>  Sidenote: I'm curious about the reason $(pwd) is used in some
> > >>  places while $PWD seems fine in others, so it doesn't seem to be
> > >>  a portability problem.  I chose $PWD since it's faster.
> > > It sometimes matters; one is a Windows path (with "C:\", etc) and one is
> > > a Unix-style path. Many spots are happy with either type, but it
> > > sometimes bites us when doing string comparisons, or in a few specific
> > > cases. See
> > >
> > >   https://lore.kernel.org/git/d36d8b51-f2d7-a2f5-89ea-369f49556e10@kdbg.org/
> > >
> > > for an example.
> > >
> > There is guidance in t/README L680-684 though it maybe not that easy to
> > spot.
> > 
> > A more recent patch was
> > https://lore.kernel.org/git/4f5c5633-f5a2-3c99-329e-3057b8d447d2@kdbg.org/
> > with slightly more details.
> 
> Thanks, both explanations are much better than the one I found (my
> digging in the archive consisted of "I know JSixt has corrected me on
> this at least once...").

Thanks both. Looks like my use of GIT_TRACE="$PWD"/trace is fine and there's plenty of examples where $PWD is used for GIT_TRACE* in our test suite (`git grep GIT_TRACE.*PWD')

Any comments on the actual change itself?  Thanks again.
Previous: Jeff King
Message 11 of 11 in “[RFC] fetch: support hideRefs to speed up connectivity checks”
  1. Eric WongFeb 9, 2023
  2. Jonathan TanFeb 10, 2023
  3. Eric WongFeb 10, 2023
  4. Junio C HamanoFeb 10, 2023
  5. Eric WongFeb 11, 2023
  6. Junio C HamanoFeb 11, 2023
  7. fetch: support hideRefs to speed up connectivity checksEric Wong, Feb 12, 2023
  8. Jeff KingFeb 13, 2023
  9. Philip OakleyFeb 13, 2023
  10. Jeff KingFeb 14, 2023
  11. Eric WongFeb 16, 2023

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.