Versions in this module Expand all Collapse all v4 v4.2.10 Oct 6, 2026 Changes in this version + const DefaultGitTag + const MaxAcceptableInitialCommits + var ErrAuthNotImplemented = errors.New("authentication method not implemented") + var ErrNoAuthMethodFound = errors.New("no authentication method found") + var ErrNoRemoteURL = errors.New("no remote URL found for repository") + var ErrNoTagsFound = errors.New("no tags found in Git history") + func CheckBranchExists(repo *git.Repository, branchName string) (bool, error) + func CheckoutBranch(w *git.Worktree, branchName string) error + func CommitChanges(repo *git.Repository, workTree *git.Worktree, commitMessage string, ...) (plumbing.Hash, error) + func CreateAndSwitchBranch(repo *git.Repository, workTree *git.Worktree, branchName string, ...) error + func DeleteLocalBranch(repo *git.Repository, branchName string) error + func DeleteRemoteBranch(repo *git.Repository, branchName string, authMethods []transport.AuthMethod) error + func GetAmountCommits(repo *git.Repository) (int, error) + func GetLatestTag(repo *git.Repository) (*globalEntities.LatestTag, error) + func GetRemoteRepoURL(repo *git.Repository) (string, error) + func ListRemoteBranches(repo *git.Repository, authMethods []transport.AuthMethod) ([]string, error) + func OpenRepo(projectPath string) (*git.Repository, error) + func PushChangesSSH(repo *git.Repository, refSpec config.RefSpec, ...) error + func PushWithTransportDetection(repo *git.Repository, refSpec config.RefSpec, ...) error + func StageAll(workTree *git.Worktree) error + func WorktreeIsClean(workTree *git.Worktree) (bool, error) + type GitOperations struct + func NewGitOperations(finder gitEntities.AdapterFinder) *GitOperations + func (o *GitOperations) CloneRepo(url, dir string, authMethods []transport.AuthMethod) (*git.Repository, error) + func (o *GitOperations) GetAuthMethods(service globalEntities.ServiceType, username string) ([]transport.AuthMethod, error) + func (o *GitOperations) GetRemoteServiceType(repo *git.Repository) (globalEntities.ServiceType, error) + func (o *GitOperations) GetServiceTypeByURL(remoteURL string) globalEntities.ServiceType + func (o *GitOperations) PushChangesHTTPS(repo *git.Repository, username string, refSpec config.RefSpec) error + type PullRequestURLInfo struct + Organization string + PRID int + Project string + RepoName string + ServiceType globalEntities.ServiceType + func ParsePullRequestURL(rawURL string) (*PullRequestURLInfo, error) + type RemoteURLInfo struct + Organization string + Project string + RepoName string + ServiceType globalEntities.ServiceType + func ParseRemoteURL(rawURL string) (*RemoteURLInfo, error) + type UserConfig struct + Email string + Name string + SSHProgram string + SigningFormat string + SigningKey string + func ReadUserConfig(repo *git.Repository) (*UserConfig, error) Other modules containing this package github.com/rios0rios0/gitforge