git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Philippe Bruhat (BooK) <book@cpan.org>
Date
Feb 21, 2008, 10:48 UTC
Message-ID
<1203590936-25827-1-git-send-email-book@cpan.org>

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) <book@cpan.org>
---
 git-cvsimport.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 9516242..3d013a7 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/);
-- 
1.5.3.8
Message 1 of 1 in “cvsimport: have default merge regex allow for dashes in the branch name”
  1. cvsimport: have default merge regex allow for dashes in the branch namePhilippe Bruhat (BooK), Feb 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.