Skip to content

Is there a way to do git blame --reverse? #1396

@nasifimtiazohi

Description

@nasifimtiazohi

I can do git blame on a file in the following way:

for commit, lines in repo.blame(commit, filepath):
        <process commit and lines>

However, I also want to do git blame --reverse START..END filename to blame the commit that deleted a line present at the START commit (or more specifically, the last commit within START..END where the line was present). Is there any way I can gitpython to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions