Versions in this module Expand all Collapse all v3 v3.0.0 Jun 13, 2026 Changes in this version + var ErrInvalidSHA = errors.New("invalid SHA") + var ErrNoCommonAncestor = errors.New("no common ancestor found") + func CopyFile(src string, dst string) error + func GetMergeBase(repo *git.Repository, targetBranch string) (*object.Commit, error) + func LoadRepository(path string) (*git.Repository, error) + func ValidateCommit(validator gitcc.Validator, repo *git.Repository, sha string) (gitcc.Result, error) + func ValidateHead(validator gitcc.Validator, repo *git.Repository) (gitcc.Result, error) + func ValidateHistory(validator gitcc.Validator, repo *git.Repository, exitSha string) ([]gitcc.Result, error)