Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t0022-crlf-rename.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t0022-crlf-rename.sh` 33 lines ยท 593 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='ignore CR in CRLF sequence while computing similarity' 4 5 . ./test-lib.sh 6 7 test_expect_success setup ' 8 9 cat "$TEST_DIRECTORY"/t0022-crlf-rename.sh >sample && 10 git add sample && 11 12 test_tick && 13 git commit -m Initial && 14 15 append_cr <"$TEST_DIRECTORY"/t0022-crlf-rename.sh >elpmas && 16 git add elpmas && 17 rm -f sample && 18 19 test_tick && 20 git commit -a -m Second 21 22 ' 23 24 test_expect_success 'diff -M' ' 25 26 git diff-tree -M -r --name-status HEAD^ HEAD >tmp && 27 sed -e "s/R[0-9]*/RNUM/" tmp >actual && 28 echo "RNUM sample elpmas" >expect && 29 test_cmp expect actual 30 31 ' 32 33 test_done