Skip to content

Commit fba275d

Browse files
committed
contrib/git-resurrect.sh: do not write \t for HT in sed scripts
Just like we did in 0d1d6e5 ("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 <[email protected]>
1 parent e1ff064 commit fba275d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/git-resurrect.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ n,dry-run don't recreate the branch"
2424
. git-sh-setup
2525

2626
search_reflog () {
27-
sed -ne 's~^\([^ ]*\) .*\tcheckout: moving from '"$1"' .*~\1~p' \
27+
sed -ne 's~^\([^ ]*\) .* checkout: moving from '"$1"' .*~\1~p' \
2828
< "$GIT_DIR"/logs/HEAD
2929
}
3030

3131
search_reflog_merges () {
3232
git rev-parse $(
33-
sed -ne 's~^[^ ]* \([^ ]*\) .*\tmerge '"$1"':.*~\1^2~p' \
33+
sed -ne 's~^[^ ]* \([^ ]*\) .* merge '"$1"':.*~\1^2~p' \
3434
< "$GIT_DIR"/logs/HEAD
3535
)
3636
}

0 commit comments

Comments
 (0)