git

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package git reads the refs a dispatch can target. Every read goes through aragonite's vcs layer, so a jj checkout answers the same questions a git one does.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBranches added in v1.0.3

func DefaultBranches() []string

DefaultBranches returns the fallback branch list used when none can be read. Callers append their own branch to it, so it hands back a copy.

func FetchBranches

func FetchBranches(ctx context.Context) ([]string, error)

FetchBranches names the branches the remote holds, which are the refs a dispatch can target. It falls back to the conventional names when the remote answers with none.

func GetCurrentBranch

func GetCurrentBranch(ctx context.Context) string

GetCurrentBranch returns the checked out branch, empty on a detached HEAD.

func GetDefaultBranch

func GetDefaultBranch(ctx context.Context) string

GetDefaultBranch returns the repository's default branch, empty when none can be determined.

Types

This section is empty.

Jump to

Keyboard shortcuts

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