Documentation
¶
Index ¶
- type Client
- type GoGitClient
- func (c GoGitClient) AddRemote(path, name, url string) error
- func (c GoGitClient) Clone(ctx context.Context, url, path, remoteName string) error
- func (c GoGitClient) CloneBare(ctx context.Context, url, path, remoteName string) error
- func (c GoGitClient) CurrentBranch(repoPath string) (string, bool, error)
- func (c GoGitClient) Fetch(ctx context.Context, repoPath, remoteName string) error
- func (c GoGitClient) IsAncestor(repoPath, ancestorRef, descendantRef string) (bool, error)
- func (c GoGitClient) IsContentMerged(repoPath, branchRef, baseRef string) (bool, error)
- func (c GoGitClient) IsRepo(path string) (bool, error)
- func (c GoGitClient) RemoteExists(repoPath, remoteName string) (bool, error)
- func (c GoGitClient) Status(path string) (StatusSummary, error)
- func (c GoGitClient) WorktreeAdd(ctx context.Context, opts WorktreeAddOptions) error
- func (c GoGitClient) WorktreeList(repoPath string) ([]string, error)
- func (c GoGitClient) WorktreeRemove(repoPath, worktreeName string) error
- type StatusSummary
- type WorktreeAddOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Clone(ctx context.Context, url, path, remoteName string) error
CloneBare(ctx context.Context, url, path, remoteName string) error
AddRemote(path, name, url string) error
Fetch(ctx context.Context, repoPath, remoteName string) error
Status(path string) (StatusSummary, error)
IsRepo(path string) (bool, error)
IsAncestor(repoPath, ancestorRef, descendantRef string) (bool, error)
IsContentMerged(repoPath, branchRef, baseRef string) (bool, error)
CurrentBranch(repoPath string) (string, bool, error)
RemoteExists(repoPath, remoteName string) (bool, error)
WorktreeAdd(ctx context.Context, opts WorktreeAddOptions) error
WorktreeRemove(repoPath, worktreeName string) error
WorktreeList(repoPath string) ([]string, error)
}
type GoGitClient ¶
type GoGitClient struct{}
func NewGoGitClient ¶
func NewGoGitClient() GoGitClient
func (GoGitClient) AddRemote ¶
func (c GoGitClient) AddRemote(path, name, url string) error
func (GoGitClient) Clone ¶
func (c GoGitClient) Clone(ctx context.Context, url, path, remoteName string) error
func (GoGitClient) CloneBare ¶
func (c GoGitClient) CloneBare(ctx context.Context, url, path, remoteName string) error
func (GoGitClient) CurrentBranch ¶
func (c GoGitClient) CurrentBranch(repoPath string) (string, bool, error)
func (GoGitClient) Fetch ¶
func (c GoGitClient) Fetch(ctx context.Context, repoPath, remoteName string) error
func (GoGitClient) IsAncestor ¶
func (c GoGitClient) IsAncestor(repoPath, ancestorRef, descendantRef string) (bool, error)
func (GoGitClient) IsContentMerged ¶ added in v0.2.0
func (c GoGitClient) IsContentMerged(repoPath, branchRef, baseRef string) (bool, error)
func (GoGitClient) RemoteExists ¶
func (c GoGitClient) RemoteExists(repoPath, remoteName string) (bool, error)
func (GoGitClient) Status ¶
func (c GoGitClient) Status(path string) (StatusSummary, error)
func (GoGitClient) WorktreeAdd ¶
func (c GoGitClient) WorktreeAdd(ctx context.Context, opts WorktreeAddOptions) error
func (GoGitClient) WorktreeList ¶
func (c GoGitClient) WorktreeList(repoPath string) ([]string, error)
func (GoGitClient) WorktreeRemove ¶
func (c GoGitClient) WorktreeRemove(repoPath, worktreeName string) error
type StatusSummary ¶
Click to show internal directories.
Click to hide internal directories.