Issue: Bitbucket shows that the entire file has changed even though I dont see any differences. And there are no merge conflicts in these files.
Details: I created a sprint branch (named "sprintbranch") and the developers created a feature branch(named "featurebranchX") from the sprint branch. I started merging feature branches back to the sprint branch as and when features were implemented. Now there are two scenarios where I face an issue:
- Developer creates a pull request to merge featurebranch1 into sprintbranch
- If there are merge conflicts, developer merges sprintbranch into featurebranch1 and creates a pull request to merge featurebranch1 into sprintbranch.
Both times bitbucket shows that the entire file has changed. And there are no merge conflicts.
When this happens, I cannot do a code review since I dont know what specific lines have been modified by the developer. Also I lose history at this point - looking back I wont be able to figure out what was implemented or merged into the sprint branch.
My guess is that the issue is with line endings. Something to do with CRLF. But when I commit my work I do see that the appropriate line endings are being used automatically (either by git or by the tool like SmartGit)
How do I resolve this so it doesnt keep happening?
Update:
I just found out that I can append a query string w=1
at the end of a url of a pull request to ignore cr lf differences.
But these files are still there in the commit and when I do merge it back, it will include those differences right?