repo_handle

package
v1.2.13-test1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle interface {
	Repository() Repository
	Submodule(submodulePath string) (SubmoduleHandle, error)
	Submodules() []SubmoduleHandle
}

Handle is a solution to get away from the worktree when working with the git repository, caching the necessary data from the worktree during initialization, and then working exclusively with git objects.

func NewHandle

func NewHandle(repository *git.Repository) (Handle, error)

type Repository

type Repository interface {
	CommitObject(h plumbing.Hash) (*object.Commit, error)
	BlobObject(h plumbing.Hash) (*object.Blob, error)
}

type SubmoduleHandle

type SubmoduleHandle interface {
	Handle
	Config() *config.Submodule
	Status() *git.SubmoduleStatus
}

Jump to

Keyboard shortcuts

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