https://bugs.kde.org/show_bug.cgi?id=507872

--- Comment #7 from Richard <[email protected]> ---
I think I found the source of the error.

When the file have CR LF as line break, then the compare function works. 
But when the files have only LF (unix) line breaks, then it does not work.

I made new smaller files for testing 
"test_1LF.txt"
> Test
> Test 4
> 123

"test_2LF.txt"
> Test
> Test 2
> 124


Output from "git diff --no-color --no-index test_1LF.txt test_2LF.txt"
> warning: in the working copy of 'test_1LF.txt', LF will be replaced by CRLF 
> the next time Git touches it
> warning: in the working copy of 'test_2LF.txt', LF will be replaced by CRLF 
> the next time Git touches it
> diff --git a/test_1LF.txt b/test_2LF.txt
> index a4ba04d..769dafb 100644
> --- a/test_1LF.txt
> +++ b/test_2LF.txt
> @@ -1,3 +1,3 @@
>  Test
> -Test 4
> -123
> \ No newline at end of file
> +Test 2
> +124
> \ No newline at end of file

The exact same files with CRLR formatting gives the same output, but without
the 2 warnings in the beginning. 
Perhaps the warning output somehow prevents Kate from displaying the output
properly?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to