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

Re: [PATCH] git-svn: shorten glob error message

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 27, 2016, 02:54 UTC
Message-ID
<20160127025408.GA17600@dcvr.yhbt.net>
In-Reply-To
<xmqqvb6wjacq.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> wrote:
> I am not sure if it is a good idea to show */*/* as an example in
> the message (that is an anti-example of 'one set of wildcard' by
> having three stars, isn't it?), but that is not a new issue this
> change introduces.

Actually, going back to commit 570d35c26dfbc40757da6032cdc96afb58cc0037 ("git-svn: Allow deep branch names by supporting multi-globs"), having equal '*' on both sides is all that is required.

Not sure how to improve the wording, though...
Show 8 quoted lines
> >  	my $state = "left";
> > -	my $die_msg = "Only one set of wildcard directories " .
> > -				"(e.g. '*' or '*/*/*') is supported: '$glob'\n";
> > +	my $die_msg = "Only one set of wildcards " .
> > +				"(e.g. '*' or '*/*/*') is supported: $glob\n";
> >  	for my $part (split(m|/|, $glob)) {
> >  		if ($pattern_ok && $part =~ /[{}]/ &&
> >  			 $part !~ /^\{[^{}]+\}/) {
Previous: Victor LeschukNext: Junio C Hamano
Message 9 of 10 in “git-svn: loosen config globs limitations”
  1. git-svn: loosen config globs limitationsVictor Leschuk, Jan 11, 2016
  2. Eric WongJan 13, 2016
  3. Victor LeschukJan 13, 2016
  4. Junio C HamanoJan 13, 2016
  5. Eric WongJan 13, 2016
  6. git-svn: shorten glob error messageEric Wong, Jan 14, 2016
  7. Junio C HamanoJan 14, 2016
  8. Victor LeschukJan 22, 2016
  9. Eric WongJan 27, 2016
  10. Junio C HamanoJan 27, 2016

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.