github

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	hm.Core
}

Client implements the hm.GitClient interface using command-line git.

func NewClient

func NewClient(params hm.XParams) *Client

func (*Client) Add

func (c *Client) Add(ctx context.Context, localRepoPath, pathspec string, env []string) error

func (*Client) Checkout

func (c *Client) Checkout(ctx context.Context, localRepoPath, branch string, create bool, env []string) error

func (*Client) Clone

func (c *Client) Clone(ctx context.Context, repoURL, localPath string, auth hm.GitAuth, env []string) error

func (*Client) Commit

func (c *Client) Commit(ctx context.Context, localRepoPath string, commit hm.GitCommit, env []string) (string, error)

func (*Client) GitLog

func (c *Client) GitLog(ctx context.Context, localRepoPath string, args []string, env []string) (string, error)

func (*Client) Push

func (c *Client) Push(ctx context.Context, localRepoPath string, auth hm.GitAuth, remote, branch string, env []string) error

func (*Client) Status

func (c *Client) Status(ctx context.Context, localRepoPath string, env []string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL