~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to t/t0022-crlf-rename.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
test_description='ignore CR in CRLF sequence while computing similiarity'
 
4
 
 
5
. ./test-lib.sh
 
6
 
 
7
test_expect_success setup '
 
8
 
 
9
        cat ../t0022-crlf-rename.sh >sample &&
 
10
        git add sample &&
 
11
 
 
12
        test_tick &&
 
13
        git commit -m Initial &&
 
14
 
 
15
        sed -e "s/\$/
 
 
b'/" ../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 |
 
27
        sed -e "s/R[0-9]*/RNUM/" >actual &&
 
28
        echo "RNUM      sample  elpmas" >expect &&
 
29
        diff -u expect actual
 
30
 
 
31
'
 
32
 
 
33
test_done