Skip to content

Commit 41dd433

Browse files
committed
Merge branch 'master' of git://bogomips.org/git-svn
* 'master' of git://bogomips.org/git-svn: doc: describe git svn init --ignore-refs
2 parents 8d1b103 + 16fbca0 commit 41dd433

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: Documentation/git-svn.txt

+16
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ If you still want the old default, you can get it by passing
9595
`--prefix ""` on the command line (`--prefix=""` may not work if
9696
your Perl's Getopt::Long is < v2.37).
9797

98+
--ignore-refs=<regex>;;
99+
When passed to 'init' or 'clone' this regular expression will
100+
be preserved as a config key. See 'fetch' for a description
101+
of `--ignore-refs`.
98102
--ignore-paths=<regex>;;
99103
When passed to 'init' or 'clone' this regular expression will
100104
be preserved as a config key. See 'fetch' for a description
@@ -138,6 +142,18 @@ the same local time zone.
138142
--parent;;
139143
Fetch only from the SVN parent of the current HEAD.
140144

145+
--ignore-refs=<regex>;;
146+
Ignore refs for branches or tags matching the Perl regular
147+
expression. A "negative look-ahead assertion" like
148+
`^refs/remotes/origin/(?!tags/wanted-tag|wanted-branch).*$`
149+
can be used to allow only certain refs.
150+
+
151+
[verse]
152+
config key: svn-remote.<name>.ignore-refs
153+
+
154+
If the ignore-refs configuration key is set, and the command-line
155+
option is also given, both regular expressions will be used.
156+
141157
--ignore-paths=<regex>;;
142158
This allows one to specify a Perl regular expression that will
143159
cause skipping of all matching paths from checkout from SVN.

0 commit comments

Comments
 (0)