cvsimport: have default merge regex allow for dashes in the branch name
PATCH 1/1 cvsimport: have default merge regex allow for dashes in the branch name
The default value of @mergerx uses \w, which matches word character; a branch name like policy-20050608-br will not be matched.
Signed-off-by Philippe Bruhat (BooK) <[email protected]>
--- git-cvsimport.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-cvsimport.perl +1 -1
@@ -164,7 +164,7 @@ if ($#ARGV == 0) { our @mergerx = (); if ($opt_m) { - @mergerx = ( qr/\b(?:from|of|merge|merging|merged) (\w+)/i ); + @mergerx = ( qr/\b(?:from|of|merge|merging|merged) ([-\w]+)/i ); } if ($opt_M) { push (@mergerx, qr/$opt_M/);
Signature · 1 line
1.5.3.8