summaryrefslogtreecommitdiff
path: root/contrib/git-resurrect.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-04-17 06:29:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-17 06:29:29 (GMT)
commit3c833cae446364872b759c7622af2760a2f81a11 (patch)
treec088aaab25517dae19010fc6e94807407033447e /contrib/git-resurrect.sh
parent93a96cced3ff4181bde02b1688c15d5de03db7be (diff)
parentfba275dc93319ffa31ecebe015f8cda671fcf0e5 (diff)
downloadgit-3c833cae446364872b759c7622af2760a2f81a11.zip
git-3c833cae446364872b759c7622af2760a2f81a11.tar.gz
git-3c833cae446364872b759c7622af2760a2f81a11.tar.bz2
Merge branch 'jc/bs-t-is-not-a-tab-for-sed'
Code cleanup. * jc/bs-t-is-not-a-tab-for-sed: contrib/git-resurrect.sh: do not write \t for HT in sed scripts
Diffstat (limited to 'contrib/git-resurrect.sh')
-rwxr-xr-xcontrib/git-resurrect.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/git-resurrect.sh b/contrib/git-resurrect.sh
index d7e97bb..8c171dd 100755
--- a/contrib/git-resurrect.sh
+++ b/contrib/git-resurrect.sh
@@ -26,13 +26,13 @@ n,dry-run don't recreate the branch"
. git-sh-setup
search_reflog () {
- sed -ne 's~^\([^ ]*\) .*\tcheckout: moving from '"$1"' .*~\1~p' \
+ sed -ne 's~^\([^ ]*\) .* checkout: moving from '"$1"' .*~\1~p' \
< "$GIT_DIR"/logs/HEAD
}
search_reflog_merges () {
git rev-parse $(
- sed -ne 's~^[^ ]* \([^ ]*\) .*\tmerge '"$1"':.*~\1^2~p' \
+ sed -ne 's~^[^ ]* \([^ ]*\) .* merge '"$1"':.*~\1^2~p' \
< "$GIT_DIR"/logs/HEAD
)
}