Documentation
¶
Index ¶
- type Commit
- type Version
- type Walker
- func (w *Walker) AddFile(filename string) error
- func (w *Walker) CommitChanges(message string) (plumbing.Hash, error)
- func (w *Walker) GetLatestTag() (string, error)
- func (w *Walker) GetRepoInfo() (owner string, name string, err error)
- func (w *Walker) GetStatusDetails() (string, error)
- func (w *Walker) IsWorkingDirectoryClean() (bool, error)
- func (w *Walker) PushToRemote() error
- func (w *Walker) RemoveFile(filename string) error
- func (w *Walker) Repository() *git.Repository
- func (w *Walker) WalkCommitsSinceTag(tagName string) (*Version, error)
- func (w *Walker) WalkHistory() (map[string]*Version, error)
- func (w *Walker) WalkHistorySinceTag(sinceTag string) (map[string]*Version, error)
- func (w *Walker) Worktree() (*git.Worktree, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Walker ¶
type Walker struct {
// contains filtered or unexported fields
}
func (*Walker) AddFile ¶ added in v1.4.262
AddFile adds a file to the git index Uses native git CLI instead of go-git to properly handle worktree scenarios
func (*Walker) CommitChanges ¶ added in v1.4.262
CommitChanges creates a commit with the given message Uses native git CLI instead of go-git to properly handle worktree scenarios
func (*Walker) GetLatestTag ¶
GetLatestTag returns the name of the most recent tag by committer date
func (*Walker) GetStatusDetails ¶ added in v1.4.262
GetStatusDetails returns a detailed status of the working directory Uses native git CLI instead of go-git to properly handle worktree scenarios
func (*Walker) IsWorkingDirectoryClean ¶ added in v1.4.262
IsWorkingDirectoryClean checks if the working directory has any uncommitted changes Uses native git CLI instead of go-git to properly handle worktree scenarios
func (*Walker) PushToRemote ¶ added in v1.4.262
PushToRemote pushes the current branch to the remote repository It automatically detects GitHub repositories and uses token authentication when available
func (*Walker) RemoveFile ¶ added in v1.4.262
RemoveFile removes a file from both the working directory and git index
func (*Walker) Repository ¶ added in v1.4.262
func (w *Walker) Repository() *git.Repository
Repository returns the underlying git repository
func (*Walker) WalkCommitsSinceTag ¶
WalkCommitsSinceTag walks commits from the specified tag to HEAD and returns only "Unreleased" version
func (*Walker) WalkHistorySinceTag ¶ added in v1.4.247
WalkHistorySinceTag walks git history from HEAD down to (but not including) the specified tag and returns any version commits found along the way