MCPcopy
hub / github.com/gitless-vcs/gitless / upstream

Method upstream

gitless/core.py:648–657  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

646
647 @property
648 def upstream(self):
649 git_upstream = self.git_branch.upstream
650 if not git_upstream:
651 return None
652
653 try:
654 git_upstream.remote_name
655 return RemoteBranch(git_upstream, self.gl_repo)
656 except ValueError: # Upstream is a local branch
657 return Branch(git_upstream, self.gl_repo)
658
659 @upstream.setter
660 def upstream(self, new_upstream):

Callers

nothing calls this directly

Calls 2

RemoteBranchClass · 0.85
BranchClass · 0.85

Tested by

no test coverage detected