push

package
v0.0.0-...-df8a049 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Push

func Push(repoURL string, client *http.Client, packfile *bytes.Buffer, refUpdates []RefUpdate) (debug.PushDebugInfo, error)

Types

type RefUpdate

type RefUpdate struct {
	Name plumbing.ReferenceName

	// OldHash, if set, is the expected value of the reference. If the value is not set, the
	// reference will be updated to the new value unconditionally. Use ZeroHash if you expect
	// the reference to not exist.
	OldHash *plumbing.Hash
	// NewHash is the value that the reference will be updated to.
	NewHash plumbing.Hash
}

Jump to

Keyboard shortcuts

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