refs

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveBrokenRef

func RemoveBrokenRef(repoPath string, refName string) error

Types

type CommitGPGSignature

type CommitGPGSignature struct {
	Signature string
	Payload   string // TODO check if can be reconstruct from the rest of commit information to not have duplicate data
}

CommitGPGSignature represents a git commit signature part.

type Matcher

type Matcher interface {
	Match(string) bool
}

type Reference

type Reference struct {
	Name      string
	ShortName string
	Hash      string
	Peeling   string
	Tree      string
	Parents   []string
	Author    *git.Signature
	Committer *git.Signature
	Message   string
	Leading   int // leading > mainline
	Lagging   int // lagging < mainline
	Broken    bool
}

func (*Reference) IsBranch

func (r *Reference) IsBranch() bool

func (*Reference) IsTag

func (r *Reference) IsTag() bool

func (*Reference) Merged

func (r *Reference) Merged() bool

type References

type References struct {
	BasePoint string
	Current   string
	Items     []*Reference
}

func ScanReferences

func ScanReferences(ctx context.Context, repoPath string, m Matcher, order git.Order) (*References, error)

Jump to

Keyboard shortcuts

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