git

package
v0.0.0-...-83152a7 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommitsCmd

func NewCommitsCmd() *cobra.Command

func NewGitCmd

func NewGitCmd() *cobra.Command

Types

type Commit

type Commit struct {
	// Hash of the commit object.
	Hash Hash
	// Author is the original author of the commit.
	Author object.Signature
	// Committer is the one performing the commit, might be different from
	// Author.
	Committer object.Signature
	// PGPSignature is the PGP signature of the commit.
	PGPSignature string
	// Message is the commit message, contains arbitrary text.
	Message string
	// TreeHash is the hash of the root tree of the commit.
	TreeHash Hash
	// ParentHashes are the hashes of the parent commits of the commit.
	ParentHashes []Hash
}

Commit is a marshalling-friendly object.Commit.

func NewCommit

func NewCommit(c *object.Commit) *Commit

func (Commit) MarshalJSON

func (c Commit) MarshalJSON() ([]byte, error)

type Hash

type Hash plumbing.Hash

Hash is a marshalling-friendly plumbing.Hash.

func (Hash) MarshalJSON

func (h Hash) MarshalJSON() ([]byte, error)

func (Hash) MarshalYAML

func (h Hash) MarshalYAML() (any, error)

func (Hash) String

func (h Hash) String() string

Jump to

Keyboard shortcuts

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