1#!/bin/sh
   2test_description='ignore CR in CRLF sequence while computing similiarity'
   4. ./test-lib.sh
   6test_expect_success setup '
   8        cat ../t0022-crlf-rename.sh >sample &&
  10        git add sample &&
  11        test_tick &&
  13        git commit -m Initial &&
  14        sed -e "s/\$/
/" ../t0022-crlf-rename.sh >elpmas &&
  16        git add elpmas &&
  17        rm -f sample &&
  18        test_tick &&
  20        git commit -a -m Second
  21'
  23test_expect_success 'diff -M' '
  25        git diff-tree -M -r --name-status HEAD^ HEAD |
  27        sed -e "s/R[0-9]*/RNUM/" >actual &&
  28        echo "RNUM      sample  elpmas" >expect &&
  29        test_cmp expect actual
  30'
  32test_done