git

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentBranch

func CurrentBranch() string

func CurrentTag

func CurrentTag() string

func Email

func Email() string

func Load

func Load() error

func LocalBranches

func LocalBranches() []string

func Origin

func Origin() string

func Remote

func Remote(name string) string

func RemoteBranches

func RemoteBranches() []string

func Tags

func Tags() []string

func User

func User() string

Types

type Config

type Config struct {
	Sections []Section
}

func (*Config) GetMail

func (c *Config) GetMail() string

func (*Config) GetRemoteURL

func (c *Config) GetRemoteURL(name string) string

func (*Config) GetUser

func (c *Config) GetUser() string

type Section

type Section struct {
	Name   string
	Sub    string
	Values map[string]string
}

Jump to

Keyboard shortcuts

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