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

Is there a way to analyze the diff between just two commits?

a-y-f opened this issue · comments

Imagine there is a commit list [A, B, ..., Z], I want to extract the changed functions using diff between commit A and Z.
Like using git diff A Z , then extract the changed methods from diff.

Now I need to traverse all commits in [A, B, ..., Z], then union the result.

I would also be interested in this feature - a diff between two commits (and similarly between the heads of two branches).

This is useful, for example, for generating automatic notes and other things as part of a PR, determining which files to do extra testing on, etc.

Achieving this shouldn't be too hard, we just need to create a diff function inside git.py that accepts 2 commits.

If anyone would like to work on it, feel free to do it.