From fbbbc362ab9d3a8d76eb4273e65fb1fb26849d75 Mon Sep 17 00:00:00 2001 From: "Philippe Bruhat (BooK" Date: Thu, 28 Feb 2008 11:18:21 +0100 Subject: [PATCH] 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) Signed-off-by: Junio C Hamano --- git-cvsimport.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 951624233..3d013a7d6 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -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/); -- 2.30.2