Skip to contentSkip to conversation

cvsimport: have default merge regex allow for dashes in the branch name

PATCH New Philippe Bruhat (BooK) 1 participant 1 message Aug 13, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
 git-cvsimport.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-cvsimport.perl +1 -1
index 9516242..3d013a7 100755
@@ -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