Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

github - git accuses that whole file was changed

I have an Eclipse RCP app, and git is now acting very weird. Everytime we change some line in class or any file, git accuses that whole file was changed.
See this gist: https://gist.github.com/luizkowalski/5968143
The only thing that was really changed was this line: Bundle-Version: 2.6.13 to Bundle-Version: 2.6.14.
This behavior started some days ago. We do not updated git on our machines. This diff was generated by GitHub

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is not a new feature or a bug. This is a result of something you guys committed unknowingly. Remember, Git is tracking all changes to the binary data of your repo. Several types of changes could have caused this. Has anyone copied the whole text of this document from one editor to another, replacing the original with the copy (perhaps across different operating systems)? Has the character set your project is using changed lately? Other things can cause this type of change detection too, but what is important to understand is that this is not an error on Git's part.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...