Suppose there is a file tracked by git. In this file, we changed a couple of lines, say at the beginning or in the middle.
Using the gitk utility, you can see what exactly has changed in the files, but there is a problem because case_1: sometimes through the utility, git only highlights a couple of lines that were deleted (-), and what was added (+), and sometimes it happened_2: it marks the contents of the entire file as (-) and replaces almost the same content plus improvements and marks ( +).
Question: in what cases does accident_1 work : and in what cases_2: and is it possible to foresee this somehow?