EncryptedWatermelon
EncryptedWatermelon

Reputation: 5598

svn2git regex variable substition

Following up on this question: svn2git rules regex

I'm migrating our code from SVN to git using svn2git (KDE version). Source tree looks like this:

A/foo
B/foo
C/foo
D/foo

I'm trying to write a rule that will match on all A,B,C, and D. For A,B, and C I want it to prepend legacy.

legacy/A/foo
legacy/B/foo
legacy/C/foo
D/foo

([A|B|C]+) almost does it with legacy/\1. but it doesn't match on D.
https://regex101.com/r/pVZi3e/4

@Emma

Upvotes: 0

Views: 54

Answers (0)

Related Questions