Documentation
¶
Index ¶
- type Client
- func (c *Client) GetCommitInfo(commitHash string) (*CommitInfo, error)
- func (c *Client) GetCommitMessage(commitHash string) (string, error)
- func (c *Client) GetCurrentBranch() (string, error)
- func (c *Client) GetCurrentCommit() (string, error)
- func (c *Client) GetShortCommit() (string, error)
- func (c *Client) GetStatus() (string, error)
- func (c *Client) GetUserEmail() (string, error)
- func (c *Client) GetUserName() (string, error)
- func (c *Client) HasUncommittedChanges() (bool, error)
- func (c *Client) IsRepository() bool
- type CommitInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles Git operations
func (*Client) GetCommitInfo ¶
func (c *Client) GetCommitInfo(commitHash string) (*CommitInfo, error)
GetCommitInfo returns detailed commit information
func (*Client) GetCommitMessage ¶
GetCommitMessage returns the commit message for a given hash
func (*Client) GetCurrentBranch ¶
GetCurrentBranch returns the current branch name
func (*Client) GetCurrentCommit ¶
GetCurrentCommit returns the current commit hash
func (*Client) GetShortCommit ¶
GetShortCommit returns the short commit hash (7 chars)
func (*Client) GetUserEmail ¶
GetUserEmail returns the git user email
func (*Client) GetUserName ¶
GetUserName returns the git user name
func (*Client) HasUncommittedChanges ¶
HasUncommittedChanges checks if there are uncommitted changes
func (*Client) IsRepository ¶
IsRepository checks if the current directory is a Git repository
Click to show internal directories.
Click to hide internal directories.