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

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.

Previous: Michael OlsonNext: Eric Wong
Message 2 of 7 in “git-svn: Allow certain refs to be ignored”
  1. 0/2 git-svn: Allow certain refs to be ignoredMichael Olson, Apr 20, 2010
  2. Junio C HamanoApr 20, 2010
  3. Eric WongApr 21, 2010
  4. Michael OlsonApr 21, 2010
  5. Eric WongApr 21, 2010
  6. Michael OlsonApr 21, 2010
  7. Eric WongApr 21, 2010

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.