repository

package
v0.0.0-...-3472b94 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeType

type ChangeType int
const (
	Modify ChangeType
	Insert
	Delete
	Move
)

type PatchFileDetail

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

func (*PatchFileDetail) ChangeType

func (d *PatchFileDetail) ChangeType() ChangeType

func (*PatchFileDetail) Name

func (d *PatchFileDetail) Name() string

type Ref

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

func (*Ref) Name

func (r *Ref) Name() string

func (*Ref) RefType

func (r *Ref) RefType() RefType

func (*Ref) TargetHash

func (r *Ref) TargetHash() string

type RefType

type RefType int
const (
	Branch RefType = iota
	RemoteBranch
	Tag
)

type RepositoryManager

type RepositoryManager struct {
	*gogigu.Repository
	// contains filtered or unexported fields
}

func OpenGitRepository

func OpenGitRepository(path string) (*RepositoryManager, error)

func OpenGitRepositoryFromArgs

func OpenGitRepositoryFromArgs(args []string) (*RepositoryManager, error)

func (*RepositoryManager) AllRefs

func (m *RepositoryManager) AllRefs(hash string) []*Ref

func (*RepositoryManager) BranchNames

func (m *RepositoryManager) BranchNames() []string

func (*RepositoryManager) FromRefName

func (m *RepositoryManager) FromRefName(name string) *Ref

func (*RepositoryManager) PatchFileDetails

func (m *RepositoryManager) PatchFileDetails(target *gogigu.Node) ([]*PatchFileDetail, error)

func (*RepositoryManager) RemoteBranchNames

func (m *RepositoryManager) RemoteBranchNames() []string

func (*RepositoryManager) RepositoryName

func (m *RepositoryManager) RepositoryName() string

func (*RepositoryManager) SortedTagNames

func (m *RepositoryManager) SortedTagNames() []string

func (*RepositoryManager) TagNames

func (m *RepositoryManager) TagNames() []string

Jump to

Keyboard shortcuts

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