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

[PATCH 0/2] git-svn: add support for prefixed globs in config

From
Victor Leschuk <vleschuk@gmail.com>
Date
Dec 16, 2015, 13:01 UTC
Message-ID
<1450270869-29822-1-git-send-email-vleschuk@accesssoftek.com>

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
Next: Victor Leschuk
Message 1 of 6 in “git-svn: add support for prefixed globs in config”
  1. 0/2 git-svn: add support for prefixed globs in configVictor Leschuk, Dec 16, 2015
  2. 1/2 git-svn: support for prefixed globs in configVictor Leschuk, Dec 16, 2015
  3. 2/2 git-svn: test for git-svn prefixed globsVictor Leschuk, Dec 16, 2015
  4. Eric WongDec 16, 2015
  5. Victor LeschukDec 16, 2015
  6. Eric WongDec 17, 2015

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.