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

Re: Adding glob support to remotes

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 23, 2006, 08:44 UTC
Message-ID
<200611230844.29061.andyparkins@gmail.com>
In-Reply-To
<7v3b8bryt6.fsf@assigned-by-dhcp.cox.net>
On Wednesday 2006 November 22 20:50, Junio C Hamano wrote:
> I do not understand and that is why I do not understand why you
> would need to touch check-ref-format.

The problem is that I didn't want to call git-ls-remote in git-parse-remote, as git-parse-remote doesn't know about $uploadpack or what the actual remote in use is. It seemed fairly intrusive to completely alter the functions in git-parse-remote; which is obviously a set of library functions.

Instead I did the expansion in git-fetch.sh. Unfortunately that meant disabling the check-ref-format call in canon_refs_list_for_fetch.

> point at" is to ask ls-remote, and if you do one ls-remote
> upfront then all you need to do here is a single grep.
I understand now.  I'll look again at this tonight and send a further patch.
Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
Previous: Junio C Hamano
Message 5 of 5 in “Adding glob support to remotes”
  1. Andy ParkinsNov 22, 2006
  2. Junio C HamanoNov 22, 2006
  3. Andy ParkinsNov 22, 2006
  4. Junio C HamanoNov 22, 2006
  5. Andy ParkinsNov 23, 2006

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.