Another one of those weird git moments: I deleted a file and created a new completely different one, yet git thinks that I renamed the file because...well...they have the same copyright notice 🤦‍♂️

@vatbub Because it's more space efficient to just change the lines rather than to delete them all and recreate them. Unless you're messing with git, git always tries to make the smallest change.

@Pixdigit Yeah, but internally, git stores renamed files as a deleted file and a newly created file. Displaying it as a renamed or moved file just makes it easier for a user to understand what's going on, but in that case, it was more confusing than helping 🙃

Sign in to participate in the conversation
Layer8 in Space

Welcome to the 8th Layer of Madness

Most topics are related to Linux, Anime, Music, Software and maaaany more