t7810: overlapping pathspecs and depth limit
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									1376e50723
								
							
						
					
					
						commit
						b31f688040
					
				|  | @ -182,6 +182,24 @@ do | ||||||
| 		test_cmp expected actual | 		test_cmp expected actual | ||||||
| 	' | 	' | ||||||
|  |  | ||||||
|  | 	test_expect_success "grep --max-depth 0 -- . t $L" ' | ||||||
|  | 		{ | ||||||
|  | 			echo ${HC}t/v:1:vvv | ||||||
|  | 			echo ${HC}v:1:vvv | ||||||
|  | 		} >expected && | ||||||
|  | 		git grep --max-depth 0 -n -e vvv $H -- . t >actual && | ||||||
|  | 		test_cmp expected actual | ||||||
|  | 	' | ||||||
|  |  | ||||||
|  | 	test_expect_success "grep --max-depth 0 -- t . $L" ' | ||||||
|  | 		{ | ||||||
|  | 			echo ${HC}t/v:1:vvv | ||||||
|  | 			echo ${HC}v:1:vvv | ||||||
|  | 		} >expected && | ||||||
|  | 		git grep --max-depth 0 -n -e vvv $H -- t . >actual && | ||||||
|  | 		test_cmp expected actual | ||||||
|  | 	' | ||||||
|  |  | ||||||
| done | done | ||||||
|  |  | ||||||
| cat >expected <<EOF | cat >expected <<EOF | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Nguyễn Thái Ngọc Duy
						Nguyễn Thái Ngọc Duy