3 # Copyright (c) 2007 Junio C Hamano
6 test_description='Quoting paths in diff output.
17 test_expect_success setup '
26 git commit -m initial &&
27 git mv "$P0.0" "R$P0.0" &&
28 git mv "$P0.1" "R$P1.0" &&
29 git mv "$P0.2" "R$P2.0" &&
30 git mv "$P0.3" "R$P3.0" &&
31 git mv "$P1.0" "R$P0.1" &&
32 git mv "$P1.2" "R$P2.1" &&
33 git mv "$P1.3" "R$P3.1" &&
38 rename pathname.1 => "Rpathname\twith HT.0" (100%)
39 rename pathname.3 => "Rpathname\nwith LF.0" (100%)
40 rename "pathname\twith HT.3" => "Rpathname\nwith LF.1" (100%)
41 rename pathname.2 => Rpathname with SP.0 (100%)
42 rename "pathname\twith HT.2" => Rpathname with SP.1 (100%)
43 rename pathname.0 => Rpathname.0 (100%)
44 rename "pathname\twith HT.0" => Rpathname.1 (100%)
46 test_expect_success 'git diff --summary -M HEAD' '
47 git diff --summary -M HEAD >actual &&
52 pathname.1 => "Rpathname\twith HT.0" | 0
53 pathname.3 => "Rpathname\nwith LF.0" | 0
54 "pathname\twith HT.3" => "Rpathname\nwith LF.1" | 0
55 pathname.2 => Rpathname with SP.0 | 0
56 "pathname\twith HT.2" => Rpathname with SP.1 | 0
57 pathname.0 => Rpathname.0 | 0
58 "pathname\twith HT.0" => Rpathname.1 | 0
59 7 files changed, 0 insertions(+), 0 deletions(-)
61 test_expect_success 'git diff --stat -M HEAD' '
62 git diff --stat -M HEAD >actual &&