Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct { *gitalypb.Repository // contains filtered or unexported fields }
Repo represents a Git repository on a different Gitaly storage
func (*Repo) GetDefaultBranch ¶
GetDefaultBranch returns the default branch for the remote repository. It does so by invoking `FindDefaultBranchName()`, which itself is a wrapper around `localrepo.GetDefaultBranch()`. Semantics of this function thus match the localrepo semantics.
func (*Repo) HasBranches ¶
HasBranches will dial to the remote repository and check whether the repository has any branches.
Click to show internal directories.
Click to hide internal directories.