git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
b4772b72f7f0d9ceab93dfa46b0c67fd65b0332f blob 604 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#!/bin/sh

test_description='ignore CR in CRLF sequence while computing similiarity'

. ./test-lib.sh

test_expect_success setup '

	cat "$TEST_DIRECTORY"/t0022-crlf-rename.sh >sample &&
	git add sample &&

	test_tick &&
	git commit -m Initial &&

	append_cr <"$TEST_DIRECTORY"/t0022-crlf-rename.sh >elpmas &&
	git add elpmas &&
	rm -f sample &&

	test_tick &&
	git commit -a -m Second

'

test_expect_success 'diff -M' '

	git diff-tree -M -r --name-status HEAD^ HEAD >actual1 &&
	sed -e "s/R[0-9]*/RNUM/" actual1 >actual2 &&
	echo "RNUM	sample	elpmas" >expect &&
	test_cmp expect actual2

'

test_done
debug log:

solving b4772b72f7 ...
found b4772b72f7 in https://public-inbox.org/git/20190309154555.33407-1-ttjtftx@gmail.com/
found 7af3fbcc7b in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 7af3fbcc7b9e5e61e41205accaa6d81e85cae6cf	t/t0022-crlf-rename.sh

applying [1/1] https://public-inbox.org/git/20190309154555.33407-1-ttjtftx@gmail.com/
diff --git a/t/t0022-crlf-rename.sh b/t/t0022-crlf-rename.sh
index 7af3fbcc7b..b4772b72f7 100755

Checking patch t/t0022-crlf-rename.sh...
Applied patch t/t0022-crlf-rename.sh cleanly.

index at:
100755 b4772b72f7f0d9ceab93dfa46b0c67fd65b0332f	t/t0022-crlf-rename.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).