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

Re: [PATCH v3] git-for-each-ref.txt: minor improvements

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 5, 2008, 18:58 UTC
Message-ID
<7vwsl31zfq.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1212691205-24399-1-git-send-email-LeWiemann@gmail.com>
Lea Wiemann <lewiemann@gmail.com> writes:
Show 7 quoted lines
>  <pattern>::
> -	If given, the name of the ref is matched against this
> -	using fnmatch(3).  Refs that do not match the pattern
> -	are not shown.
> +	If one or more patterns are given, only refs are shown that
> +	match againt at least one pattern, either using fnmatch(3) or
> +	literally, in the latter case up to a slash or entirely.

Thanks. I suspect we might want to make it even more explicit that this is "match from the beginning" unlike what git-show-ref does, but your patch is an improvement even as-is.

Previous: Lea WiemannNext: Lea Wiemann
Message 4 of 6 in “git-for-each-ref.txt: fix description of <pattern>”
  1. git-for-each-ref.txt: fix description of <pattern>Lea Wiemann, Jun 5, 2008
  2. git-for-each-ref.txt: minor improvementsLea Wiemann, Jun 5, 2008
  3. git-for-each-ref.txt: minor improvementsLea Wiemann, Jun 5, 2008
  4. Junio C HamanoJun 5, 2008
  5. git-for-each-ref.txt: minor fixesLea Wiemann, Jun 5, 2008
  6. git-for-each-ref.txt: minor improvementsLea Wiemann, Jun 5, 2008

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.