git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] git-svn: add support for prefixed globs in config
@ 2015-12-16 13:01 Victor Leschuk
  2015-12-16 13:01 ` [PATCH 1/2] git-svn: " Victor Leschuk
  2015-12-16 13:01 ` [PATCH 2/2] git-svn: test for git-svn prefixed globs Victor Leschuk
  0 siblings, 2 replies; 6+ messages in thread
From: Victor Leschuk @ 2015-12-16 13:01 UTC (permalink / raw)
  To: git; +Cc: vleschuk, normalperson

There are existing old SVN repos which use patterns in branch (and tag) names
to indicate some information. For example: branches/release_01, branches/release_02, etc,
however non-patterned branches co-exist with them (like branches/dev).

If someone maintains git mirror of such a repo it is reasonable to mirror only
several branches (for example those who match some pattern) and in current situation
it leads to messy and error-prone git config like:

branches = branches/{release_20,release_21,release_22,...

It would be useful to have an opportunity to write

branches = branches/release_*

instead of this.

Thus I suggest to add support for such 'prefixed' globs into git-svn.

Victor Leschuk (2):
  Introduce prefixed globs for branches and tags in git-svn.
  Add test for git-svn prefixed globs.

 Documentation/git-svn.txt        |   5 ++
 perl/Git/SVN/GlobSpec.pm         |   9 ++-
 t/t9168-git-svn-prefixed-glob.sh | 136 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 145 insertions(+), 5 deletions(-)
 create mode 100755 t/t9168-git-svn-prefixed-glob.sh

-- 
2.7.0.rc0.21.gb793f61

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-17  0:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16 13:01 [PATCH 0/2] git-svn: add support for prefixed globs in config Victor Leschuk
2015-12-16 13:01 ` [PATCH 1/2] git-svn: " Victor Leschuk
2015-12-16 13:01 ` [PATCH 2/2] git-svn: test for git-svn prefixed globs Victor Leschuk
2015-12-16 21:28   ` Eric Wong
2015-12-16 21:31     ` Victor Leschuk
2015-12-17  0:32       ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).