Support substitutions for repository/branch names. 12
authorModestas Vainius <modestas@vainius.eu>
Sun, 24 Apr 2011 19:46:23 +0000 (22:46 +0300)
committerModestas Vainius <modestas@vainius.eu>
Sun, 24 Apr 2011 19:46:23 +0000 (22:46 +0300)
commitc630dd763cf6ec096489bea551ca959540969c94
tree64cfc7d592950bb22167892760aa74e322066042
parent197979b6a641b8b5fa4856c700b1235491c73a41
Support substitutions for repository/branch names.

This patch adds support for 's///' style substitutions for the
repository/branch names in the match rulesets. Useful when e.g. eliminating
characters not supported in git branch names.

Syntax:

match /...
    repository some_repo
    substitute repository s/pattern/replacement/
    branch some_branch
    substitute branch s/pattern/replacement/
end match
src/ruleparser.cpp
src/ruleparser.h
src/svn.cpp