For some reason, when I rename a file in Android Studio through the “refactor -> rename…” menu, the file is displayed in Git as new and the old file is deleted. Here’s an example:
There is a file Utils, I renamed it to LauncherIntentHelper
In this case, Utils is marked as deleted and LauncherIntentHelper as newly added, so git history for Utils are lost.
I can’t understand why this happens and it seems that earlier when renaming a file through the Android Studio UI, the renaming in Git was displayed correctly.
Btw, I’m not using remote repository, currently this local repository (so all commits don’t pushed, only commited).
I’m using Android Studio Jellyfish | 2023.3.1 RC 2