Git has inferred a "rename" when I had no desire for it to do so (this question is effectively the opposite of, say, How to make git mark a deleted and a new file as a file move?):
- I created a new file, and did
git add. (I did not do agit commit, as I have no desire to do so at this stage.) - Later on I did
git rmon another file. - Now
git statusreportsrenamed: old-file -> new-file. I have notcommitted yet.
The two files are in the same directory, have similar-ish names and a certain amount of common content. However, I deliberately did not do a git mv, as this is not a rename, I want the two files tracked separately. If I had wanted a rename I would have done a git mv rather than my deliberate git add/git rm.
What about the activity has caused git to decide it's a rename, and can it be told not to try to infer things I don't intend?