ishepard / pydriller

Python Framework to analyse Git repositories

Home Page:http://pydriller.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Methods that were renamed

josemiguelpg opened this issue · comments

Hi! I would like to know if there is any way to know a single methods' name before and after the commit. I believe the actual API only provides ALL the methods before and ALL the methods after. In case of two methods renames we can't get the name before and after of each one.
I don't have a solution for this yet as i didn't explore the source code. Sorry

hi @josemiguelpg!

No there is currently no way to get methods renames, and there won't be as it is not deterministic.
What I suggest you to do is to manually calculate it (you have the list of methods, start and end line, before and after. I'd suggest you to use some sort of similarity metric between methods. It will be very hard and error prone)