Skip to content

Commit

Permalink
cvsimport: have default merge regex allow for dashes in the branch name
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Philippe Bruhat (BooK authored and Junio C Hamano committed Mar 1, 2008
1 parent b75bb1d commit fbbbc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ sub read_repo_config {

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/);
Expand Down

0 comments on commit fbbbc36

Please sign in to comment.