Last active
November 20, 2022 14:07
-
-
Save KanoeGitHub/bcb16ab002d61a9144d039c29aa00f13 to your computer and use it in GitHub Desktop.
getting git diffs with gitpython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import git | |
repo = git.Repo('<Repository Path>') | |
t = repo.head.commit.tree | |
print(repo.git.diff(t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment