How to determine if commit exists in one or more remotes? #1149
-
I have a task to check if a given commit has been pushed up to 1 or more remotes. Using the I also see that when I run
So, git seems to actually know if this commit is on those branches, I would love to be able to leverage that so as to not make more calls. How can I do something similar with the go-git SDK? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
Remote.List
is what you are looking for. The existing tests might give you an idea on how to use it.