git

package
v0.0.0-...-fdf23f2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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 Service

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

Service handles git operations for the Strategic Claude Basic CLI

func New

func New() *Service

New creates a new git service instance

func (*Service) CleanupTempDir

func (s *Service) CleanupTempDir(path string) error

CleanupTempDir removes the temporary directory and its contents

func (*Service) CloneRepository

func (s *Service) CloneRepository(url, commit string) (string, error)

CloneRepository clones a git repository to a temporary directory and checks out a specific commit

func (*Service) CloneRepositoryWithBranch

func (s *Service) CloneRepositoryWithBranch(url, branch, commit string) (string, error)

CloneRepositoryWithBranch clones a git repository with optional branch specification and checks out a specific commit

func (*Service) GetRepoInfo

func (s *Service) GetRepoInfo(repoPath string) (map[string]string, error)

GetRepoInfo returns information about the repository state

func (*Service) IsValidCommit

func (s *Service) IsValidCommit(repoPath, commit string) error

IsValidCommit checks if a commit hash exists in the repository

func (*Service) ValidateGitInstalled

func (s *Service) ValidateGitInstalled() error

ValidateGitInstalled checks if git is available in the system

Jump to

Keyboard shortcuts

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