Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle renamed files #40

Open
AlexJitianu opened this issue Oct 4, 2017 · 3 comments
Open

Handle renamed files #40

AlexJitianu opened this issue Oct 4, 2017 · 3 comments

Comments

@AlexJitianu
Copy link
Collaborator

  1. If I rename a file using git mv old_filename new_filename I expect to see just the new file with a "Renamed" status/icon. The Diff should also be performed between the old and the new files because other changes might have been made (besides the rename). Right now we present the new file as added and the old one as deleted.

  2. It would be great if we can intercept the "Rename" action from Oxygen's Project view and use a git mv if the resource is under Git version control.

@stefan-jung
Copy link

FYI: When using Git on the CLI, e.g. with Git Bash, you usually see a deleted file and an untracked file, when renaming it without git mv, e.g. by Windows Explorer. But if you stage both changes with git add, Git usually automatically detects, that both changes are a single rename.

@georgebina
Copy link

georgebina commented Oct 4, 2017

I guess one can check the MD5 of all files - if the same MD5 is found on a deleted and on an untracked file then that is actually a move.

@AlexJitianu
Copy link
Collaborator Author

AlexJitianu commented Oct 5, 2017

Checking the MD5 would work if the content is untouched but in my case I also made changes inside the content. That's why I wanted Oxygen to show me the DIFF between the two. In my particular case I renamed the file from an Eclipse that had the Git plugin. I suspect that Eclipse's Git plugin intercepted the rename because a git status identified the file as being renamed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants