# [PATCH] doc: describe git svn init --ignore-refs

3 messages from 2017-06-07 to 2017-06-10. Participants: Andreas Heiduk, Eric Wong, Junio C Hamano.
Thread: https://gitlist.dev/t/46135

## Andreas Heiduk, 2017-06-07 18:32

Subject: [PATCH] doc: describe git svn init --ignore-refs
Message-ID: <20170607183214.21259-1-asheiduk@gmail.com>
URL: https://gitlist.dev/e/20170607183214.21259-1-asheiduk%40gmail.com

```
Add the missing documentation for `git svn init --ignore-refs`.

Signed-off-by: Andreas Heiduk <asheiduk@gmail.com>
---
 Documentation/git-svn.txt | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 9bee9b0c4..fba0b4eec 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -95,6 +95,10 @@ If you still want the old default, you can get it by passing
 `--prefix ""` on the command line (`--prefix=""` may not work if
 your Perl's Getopt::Long is < v2.37).
 
+--ignore-refs=<regex>;;
+	When passed to 'init' or 'clone' this regular expression will
+	be preserved as a config key.  See 'fetch' for a description
+	of `--ignore-refs`.
 --ignore-paths=<regex>;;
 	When passed to 'init' or 'clone' this regular expression will
 	be preserved as a config key.  See 'fetch' for a description
@@ -138,6 +142,18 @@ the same local time zone.
 --parent;;
 	Fetch only from the SVN parent of the current HEAD.
 
+--ignore-refs=<regex>;;
+	Ignore refs for branches or tags matching the Perl regular
+	expression. A "negative look-ahead assertion" like
+	`^refs/remotes/origin/(?!tags/wanted-tag|wanted-branch).*$`
+	can be used to allow only certain refs.
++
+[verse]
+config key: svn-remote.<name>.ignore-refs
++
+If the ignore-refs configuration key is set, and the command-line
+option is also given, both regular expressions will be used.
+
 --ignore-paths=<regex>;;
 	This allows one to specify a Perl regular expression that will
 	cause skipping of all matching paths from checkout from SVN.
-- 
2.13.0


```

## Eric Wong, 2017-06-07 23:32

Subject: Re: [PATCH] doc: describe git svn init --ignore-refs
Message-ID: <20170607233226.GA7061@starla>
URL: https://gitlist.dev/e/20170607233226.GA7061%40starla
In-Reply-To: <20170607183214.21259-1-asheiduk@gmail.com>

```
Andreas Heiduk <asheiduk@gmail.com> wrote:
> Add the missing documentation for `git svn init --ignore-refs`.
> 
> Signed-off-by: Andreas Heiduk <asheiduk@gmail.com>

Thanks, signed-off and pushed for Junio:

  The following changes since commit 8d1b10321b20bd2a73a5b561cfc3cf2e8051b70b:

    Sync with maint (2017-06-07 09:32:04 +0900)

  are available in the git repository at:

    git://bogomips.org/git-svn.git master

  for you to fetch changes up to 16fbca07e295358406dfad88c4a9721f57357cbc:

    doc: describe git svn init --ignore-refs (2017-06-07 23:10:09 +0000)

  ----------------------------------------------------------------
  Andreas Heiduk (1):
        doc: describe git svn init --ignore-refs

   Documentation/git-svn.txt | 16 ++++++++++++++++
   1 file changed, 16 insertions(+)

```

## Junio C Hamano, 2017-06-10 05:33

Subject: Re: [PATCH] doc: describe git svn init --ignore-refs
Message-ID: <xmqqr2ys2yqh.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqr2ys2yqh.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <20170607233226.GA7061@starla>

```
Thanks, will pull.

```
