[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn ls --search/pattern/glob/case-insensitive

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 1 Sep 2017 13:30:18 +0200

On Fri, Sep 01, 2017 at 06:36:46AM +0200, Stefan Fuhrmann wrote:
> Because I think that strict glob-like patterns need to be supported
> as well, I suggest to have two options:
>
> --search does a fuzzy search just like we use it in other commands.
> We implicitly add leading an trailing '*'.
>
> --search-glob performs a fully case- and accent-sensitive glob
> matching.
>
> As with '--search' alone, the user is free to specify any number
> and combination of the above but without the support of '--search-and' -
> at least for now.
>
> Thoughts? Better names for '--search-glob'?

I don't see a need to invent a new option name.

I would say it's OK to have --search options with slightly different
semantics for different subcommands. Their semantics just shouldn't
be entirely different. If one matches case-sensitively and the other
does not, I would say that's too different. But I don't think we
need to be consistent about implicit *-globbing rules.

So having 'svn list --search' do what you describe above as
'svn list --search-glob' would be entirely acceptable to me.
Received on 2017-09-01 13:30:42 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.