git

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitChanges

func CommitChanges(message string) error

func GetCommitLog added in v0.0.27

func GetCommitLog(baseRef, headRef string) (string, error)

func GetCommittedDiff added in v0.0.27

func GetCommittedDiff(baseRef, headRef string) (string, error)

func GetCommittedDiffStat added in v0.0.27

func GetCommittedDiffStat(baseRef, headRef string) (string, error)

func GetCurrentBranch added in v0.0.27

func GetCurrentBranch() (string, error)

func GetDefaultBaseBranch added in v0.0.27

func GetDefaultBaseBranch() (string, error)

func GetRemoteURL added in v0.0.27

func GetRemoteURL(remoteName string) (string, error)

func GetRepoRoot added in v0.0.27

func GetRepoRoot() (string, error)

func GetStagedDiff

func GetStagedDiff() (string, error)

func GetUnstagedDiff added in v0.0.5

func GetUnstagedDiff() (string, error)

Types

type DiffSummary added in v0.0.14

type DiffSummary struct {
	Files []FileDiff
}

func ParseDiffSummary added in v0.0.14

func ParseDiffSummary(diff string) DiffSummary

type FileDiff added in v0.0.14

type FileDiff struct {
	Name         string
	AddedLines   int
	DeletedLines int
}

type PushStatus added in v0.0.27

type PushStatus struct {
	HasUpstream bool
	UpstreamRef string
	RemoteName  string
	RemoteRef   string
	HeadPushed  bool
}

func GetPushStatus added in v0.0.27

func GetPushStatus(branch string) (PushStatus, error)

Jump to

Keyboard shortcuts

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