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) <book@cpan.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		
				
					committed by
					
						
						Junio C Hamano
					
				
			
			
				
	
			
			
			
						parent
						
							b75bb1d695
						
					
				
				
					commit
					fbbbc362ab
				
			@ -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/);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user