Re: [PATCH/RFC 0/2] git-svn: Allow certain refs to be ignored
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 20, 2010, 23:58 UTC
- Message-ID
- <7vbpddekwk.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <o2xc8b3bef91004201430m10bbe060q7d8ebd3a1ac4c3bd@mail.gmail.com>
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.
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.