git

package
v0.3.0-20261113152832-... Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package git resolves the base revision of a queue by asking a git workspace for the tip of the queue's target branch. Any gitworkspace.Factory works, so where git runs is the deployment's choice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(factory gitworkspace.Factory, targets map[string]Target) baserevision.Resolver

New returns a Resolver that fetches the target branch of the queue and returns its tip as a full commit SHA. A queue without a target, or any git failure, is an error. Calls that share a Repo are serialized, because concurrent fetches into one clone can fail on a ref lock and overwrite each other's FETCH_HEAD.

Types

type Target

type Target struct {
	// Repo identifies the repository to the workspace factory.
	Repo string

	// Remote is the git remote the branch is fetched from. It defaults to
	// origin.
	Remote string

	// Branch is the target branch.
	Branch string
}

Target locates the branch whose tip is a queue's base revision.

Jump to

Keyboard shortcuts

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