Xcode shows wrong line being changed in diff viewer

Originator:avedesk
Number:rdar://35130467 Date Originated:23-Oct-2017 09:10 PM
Status:Open Resolved:
Product:Developer Tools Product Version:9.0.1
Classification:Serious Bug Reproducible:Always
 
Summary:
After making a small (1 character) fix to a localization file, Xcode's diff viewer highlights the wrong line as changed. The line that got actually changed is not highlighted. 

See the attached screenshot and the attached output of git diff. The line that is changed is one line above the highlighted one


Steps to Reproduce:
Open diff viewer for a small change

Expected Results:
The line with the actual diff is highlighted as such

Actual Results:
Wrong, unchanged line is highlighted instead

Version:
9.0.1

Notes:
Output of a commandline git diff
<redacted>

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!