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

Re: Bug: magic-less pathspecs that start with ":" not processed as expected.

From
Jeff King <peff@peff.net>
Date
Nov 7, 2023, 03:25 UTC
Message-ID
<20231107032144.GA873619@coredump.intra.peff.net>
In-Reply-To
<xmqqfs1icvfl.fsf@gitster.g>
On Tue, Nov 07, 2023 at 08:29:34AM +0900, Junio C Hamano wrote:
Show 14 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > PS It took me a while to figure out where we document pathspec syntax. I
> >    wonder if a "gitpathspecs" manpage would make sense, like we have
> >    "gitrevisions".
> 
> Yeah, I came to the same conclusion (should have saved time by
> scanning the mailing list before I started writing my response) and
> wondered where we wrote it down.  The description you found in the
> glossary, as far as I recall, is the authoritative one and looks
> readable, but I agree it is not as discoverable as it should be.
> 
> A simpler and more readable workaround than ":::file" is "./:file"
> by the way ;-)
Oh, indeed. That is much less horrible than ":(literal)". :)
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 5 in “Bug: magic-less pathspecs that start with ":" not processed as expected.”
  1. Joanna WangNov 6, 2023
  2. Jeff KingNov 6, 2023
  3. Junio C HamanoNov 6, 2023
  4. Jeff KingNov 7, 2023
  5. Junio C HamanoNov 6, 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.