

Actually the function definition is unchanged. The line that was “added” at the bottom was also “removed” at the top. This is just the Git diff generator being confused, which won’t come as a surprise to anyone that has ever used it.
The indendentation really is messed-up though.




Of course, but you said:
It is weird to split the two in your sentence, as only the indentation of the next function definition was changed, not the definition itself.
You can just take the L and say you didn’t see that the function definition that was “added” was just “removed” at the top. It is an easy mistake to make, I know I’ve done it many times.