Re: [PATCH/RFC 0/2] git-svn: Allow certain refs to be ignored
- From
Michael Olson <mwolson@gnu.org>
- Date
- Apr 21, 2010, 16:31 UTC
- Message-ID
- <m2wc8b3bef91004210931xc0a7ec58ycbf18dd37d5e98f0@mail.gmail.com>
- In-Reply-To
- <7vbpddekwk.fsf@alter.siamese.dyndns.org>
On Tue, Apr 20, 2010 at 4:58 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Michael Olson <mwolson@gnu.org> writes: > >> [svn-remote "svn"] >> url = https://svn.my.org/svn/root >> ... >> ignore-refs = ^refs/remotes/(tags/)?old/myorg > > Traditionally configuration variable names are spelled camelCase without > dashes. You probably would want to be consistent.
I was looking at the existing syntax for "ignore-paths", which uses dashes. Should that be changed as well?
Show 6 quoted lines
> Also "refs" and any pathname-like things are traditionally matched using > globs and not regexes. It is Ok to deviate if you have a strong reason to > (and I suspect it would make it easier to write "exclude" patterns like > the above example to allow a regex here), but that needs to be prominently > documented (e.g. "Unlike any other ref-matching configuration variable, > this alone uses regex, not glob") to avoid end user confusion.
ignore-paths also uses a regex. I'm concerned that using globs will not be expressive enough to represent a regex like (a combination of the 2 use cases I posted initially):
^refs/remotes/((tags/)?old/myorg|old/bad_branch|old/unlabeled[^/]*|tags/(old/bad_tag|releases/another_tag))$
-- Michael Olson | http://mwolson.org/