ref

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ref provides general, detached, and symbolic references.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detached

type Detached struct {
	RefName string
	ID      objectid.ObjectID

	// Peeled is the peeled target when available (for annotated tags).
	//
	// This field is optional backend-provided metadata. Backends that do not
	// have peel metadata available may leave it nil.
	Peeled *objectid.ObjectID
}

Detached points directly to an object ID.

func (Detached) Name

func (ref Detached) Name() string

Name returns the fully-qualified reference name.

type Ref

type Ref interface {
	Name() string
	// contains filtered or unexported methods
}

Ref is a Git reference.

Implementations must be in this package.

type Symbolic

type Symbolic struct {
	RefName string
	Target  string
}

Symbolic points to another reference name.

func (Symbolic) Name

func (ref Symbolic) Name() string

Name returns the fully-qualified reference name.

Jump to

Keyboard shortcuts

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