contrib/git-resurrect.sh: do not write \t for HT in sed scripts
Just like we did in 0d1d6e50 ("t/t7003: replace \t with literal tab
in sed expression", 2010-08-12), avoid writing "\t" for HT in sed
scripts, which is not portable.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
			
			
				maint
			
			
		
							parent
							
								
									e1ff064e1b
								
							
						
					
					
						commit
						fba275dc93
					
				| 
						 | 
					@ -24,13 +24,13 @@ n,dry-run            don't recreate the branch"
 | 
				
			||||||
. git-sh-setup
 | 
					. git-sh-setup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
search_reflog () {
 | 
					search_reflog () {
 | 
				
			||||||
        sed -ne 's~^\([^ ]*\) .*\tcheckout: moving from '"$1"' .*~\1~p' \
 | 
						sed -ne 's~^\([^ ]*\) .*	checkout: moving from '"$1"' .*~\1~p' \
 | 
				
			||||||
                < "$GIT_DIR"/logs/HEAD
 | 
					                < "$GIT_DIR"/logs/HEAD
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
search_reflog_merges () {
 | 
					search_reflog_merges () {
 | 
				
			||||||
	git rev-parse $(
 | 
						git rev-parse $(
 | 
				
			||||||
		sed -ne 's~^[^ ]* \([^ ]*\) .*\tmerge '"$1"':.*~\1^2~p' \
 | 
							sed -ne 's~^[^ ]* \([^ ]*\) .*	merge '"$1"':.*~\1^2~p' \
 | 
				
			||||||
			< "$GIT_DIR"/logs/HEAD
 | 
								< "$GIT_DIR"/logs/HEAD
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue