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>

Junio C Hamano committed Mar 31, 2017 at 21:08 UTC fba275dc93319ffa31ecebe015f8cda671fcf0e5
1 file changed +2 -2
contrib/git-resurrect.sh
+2 -2
@@ -24,13 +24,13 @@ n,dry-run don't recreate the branch"
24 . git-sh-setup
25
26 search_reflog () {
27 - sed -ne 's~^\([^ ]*\) .*\tcheckout: moving from '"$1"' .*~\1~p' \
27 + sed -ne 's~^\([^ ]*\) .* checkout: moving from '"$1"' .*~\1~p' \
28 < "$GIT_DIR"/logs/HEAD
29 }
30
31 search_reflog_merges () {
32 git rev-parse $(
33 - sed -ne 's~^[^ ]* \([^ ]*\) .*\tmerge '"$1"':.*~\1^2~p' \
33 + sed -ne 's~^[^ ]* \([^ ]*\) .* merge '"$1"':.*~\1^2~p' \
34 < "$GIT_DIR"/logs/HEAD
35 )
36 }