git

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExistsInTree

func FileExistsInTree(tree *object.Tree, path string) bool

func GetAuth

func GetAuth() (transport.AuthMethod, error)

func GetFileContentFromTree

func GetFileContentFromTree(tree *object.Tree, path string) ([]byte, error)

Types

type ClonedRepo

type ClonedRepo struct {
	Repo   *git.Repository
	Branch string
	Tree   *object.Tree
	Ref    *plumbing.Reference
	Commit *object.Commit
}

func CloneRepo

func CloneRepo(c config.GitConfig) (*ClonedRepo, error)

func (*ClonedRepo) Refresh

func (r *ClonedRepo) Refresh() error

Jump to

Keyboard shortcuts

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