git

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitRepository

func IsGitRepository(path string) bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(repoPath string, cfg *config.Config) (*Client, error)

func (*Client) CreateCommit

func (c *Client) CreateCommit(files []string, message string) error

func (*Client) CreateTag

func (c *Client) CreateTag(tag, message string) error

func (*Client) ExtractVersionFromTag

func (c *Client) ExtractVersionFromTag(tag string) (string, error)

func (*Client) GetCommits

func (c *Client) GetCommits(from, to string) ([]*CommitInfo, error)

func (*Client) GetLatestTag

func (c *Client) GetLatestTag() (string, error)

type CommitInfo

type CommitInfo struct {
	Hash    string
	Message string
	Author  string
	Date    string
}

Jump to

Keyboard shortcuts

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