src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 542 forks source link

current blame method implementation will get an error in some cases #1140

Open limeng19941011 opened 5 years ago

limeng19941011 commented 5 years ago

Suppose we have a project, one develops on the A branch, the other one develops on the B branch, and the A and B branches have different contents on the same file.In this case, the contents of the two branches A and B are merged into the master branch. in this time, if we invoke blame function with param commit_param and path_param, commit_param is the last commit of master branch and path_param is the path of file which A and B branch both edit, the function result will be missing the earlier submitted content in the A or B branches.