Get a branch by using a commit #1402
Unanswered
CristianCojocari
asked this question in
Q&A
Replies: 1 comment 1 reply
-
GitPython doesn't have a fast way of determining if a commit is in the ancestry of a branch, as one would have to traverse it to know which can be slow. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code in question is here:
Is there a way to either check whether specifiedCommit is a commit in the dev branch, or restrict somehow the commits that can be accessed to the active branch?
Currently the code above outputs the actual commit from the master branch and I couldn't find any way to access it's branch to check whether it's dev or not.
Beta Was this translation helpful? Give feedback.
All reactions