mirror of
https://github.com/git/git.git
synced 2024-11-05 00:37:55 +01:00
f8b6809d52
663af3422a
(Full rework of
quote_c_style and write_name_quoted.) mistakenly used puts()
when writing out a fixed string when it did not want to add a
terminating LF.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
26 lines
376 B
Bash
Executable file
26 lines
376 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='rewrite diff'
|
|
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success setup '
|
|
|
|
cat ../../COPYING >test &&
|
|
git add test &&
|
|
tr 'a-zA-Z' 'n-za-mN-ZA-M' <../../COPYING >test
|
|
|
|
'
|
|
|
|
test_expect_success 'detect rewrite' '
|
|
|
|
actual=$(git diff-files -B --summary test) &&
|
|
expr "$actual" : " rewrite test ([0-9]*%)$" || {
|
|
echo "Eh? <<$actual>>"
|
|
false
|
|
}
|
|
|
|
'
|
|
|
|
test_done
|
|
|