Branch latest SHA and differs_from
keyword argument
#1149
Answered
by
sigmavirus24
kamilturek
asked this question in
Q&A
-
Hello 👋
Many thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
sigmavirus24
Apr 26, 2023
Replies: 1 comment
-
It's supported and intended to be documented (as there's a docstring): github3.py/src/github3/repos/branch.py Line 37 in e06c519
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sigmavirus24
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's supported and intended to be documented (as there's a docstring):
github3.py/src/github3/repos/branch.py
Line 37 in e06c519
differs_from
is for a very specific use-case. Let's say that you have a (very very very) long running process and you've retrieved thatBranch
object already way in the past. You can callb.differs_from(b.commit.sha)
to determine if the branch on GitHub has new commits or has been changed.