summaryrefslogtreecommitdiff
path: root/Documentation/git-svn.txt
diff options
context:
space:
mode:
authorVictor Leschuk <vleschuk@gmail.com>2016-01-11 14:25:58 (GMT)
committerEric Wong <normalperson@yhbt.net>2016-03-15 01:35:38 (GMT)
commite4e5dd94e6eea4b50d8baed8b6b8cc50f6c8eae4 (patch)
tree5d812499bc6dd8d2c281e4ca20a35eee4a05b822 /Documentation/git-svn.txt
parentdb6696f653b917509dac1ac13b922e12773a84ff (diff)
downloadgit-e4e5dd94e6eea4b50d8baed8b6b8cc50f6c8eae4.zip
git-e4e5dd94e6eea4b50d8baed8b6b8cc50f6c8eae4.tar.gz
git-e4e5dd94e6eea4b50d8baed8b6b8cc50f6c8eae4.tar.bz2
git-svn: loosen config globs limitations
Expand the area of globs applicability for branches and tags in git-svn. It is now possible to use globs like 'a*e', or 'release_*'. This allows users to avoid long lines in config like: branches = branches/{release_20,release_21,release_22,...} In favor of: branches = branches/release_* [ew: amended commit message, minor formatting and style fixes] Signed-off-by: Victor Leschuk <vleschuk@accesssoftek.com> Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'Documentation/git-svn.txt')
-rw-r--r--Documentation/git-svn.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 0c0f60b..fb23a98 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -1034,6 +1034,8 @@ listed below are allowed:
url = http://server.org/svn
fetch = trunk/project-a:refs/remotes/project-a/trunk
branches = branches/*/project-a:refs/remotes/project-a/branches/*
+ branches = branches/release_*:refs/remotes/project-a/branches/release_*
+ branches = branches/re*se:refs/remotes/project-a/branches/*
tags = tags/*/project-a:refs/remotes/project-a/tags/*
------------------------------------------------------------------------
@@ -1044,6 +1046,16 @@ independent path component (surrounded by '/' or EOL). This
type of configuration is not automatically created by 'init' and
should be manually entered with a text-editor or using 'git config'.
+Also note that only one asterisk is allowed per word. For example:
+
+ branches = branches/re*se:refs/remotes/project-a/branches/*
+
+will match branches 'release', 'rese', 're123se', however
+
+ branches = branches/re*s*e:refs/remotes/project-a/branches/*
+
+will produce an error.
+
It is also possible to fetch a subset of branches or tags by using a
comma-separated list of names within braces. For example: