-
-
Notifications
You must be signed in to change notification settings - Fork 954
-
I'm trying to compare the diffs between two branches for a git forge project and I tried using:
diff = repo.git.diff(f"{branch1}...{branch2}")
But the diff result is a string and I need a diff object.
Is there a way to create a diff object from this string?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
This just invokes the git
command, without further processing.
In order to get diffs, the higher-level API is needed, but I am not sure if diffs can be specified using the a...b
syntax. It's certainly worth to just try it in place where the documentation speaks about refs or revs.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment