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

Re: [PATCH] git-submodule fixes for call to git config --get-regexp

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 20, 2007, 18:36 UTC
Message-ID
<Pine.LNX.4.64.0707201933360.14781@racer.site>
In-Reply-To
<7vsl7jvthk.fsf@assigned-by-dhcp.cox.net>
Hi,
On Fri, 20 Jul 2007, Junio C Hamano wrote:
Show 5 quoted lines
> "Chris Larson" <clarson@kergoth.com> writes:
> 
> > +       name=$(GIT_CONFIG=.gitmodules git config --get-regexp
> > '^submodule\..*\.path$' "^$path$" |
> >        sed -nre 's/^submodule\.(.+)\.path .+$/\1/p')

I wonder why it is a regular expression to begin with, since we seem to prefer shell patterns on paths.

However, _if_ we already go with regexps, why not just put it into the "sed" call, which is _already_ there, and leave "git config" alone? IOW call

	git config --get-regexp '^submodule\..*\.path$' |
		sed -nre 's/^submodule\.(.*$path.*)\.path .+$\1/p'
Hmm?

Ciao, Dscho

Previous: Junio C Hamano
Message 3 of 3 in “git-submodule fixes for call to git config --get-regexp”
  1. git-submodule fixes for call to git config --get-regexpChris Larson, Jul 20, 2007
  2. Junio C HamanoJul 20, 2007
  3. Johannes SchindelinJul 20, 2007

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.