commit

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name  string
	Email string
}

type Commit

type Commit struct {
	Config  Config
	Author  Author
	Emoji   string
	Summary string
	Body    string
	Footer  string
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Commit, error)

func (*Commit) Create

func (c *Commit) Create() error

type Config

type Config struct {
	Hash         string
	Authors      []Author
	Summary      string
	Body         string
	LocalBranch  string
	RemoteBranch string
	BranchRefs   []string
	Remotes      []string
	Emojis       []emoji.Emoji
}

type Options added in v0.1.1

type Options struct {
	Apply bool
}

Jump to

Keyboard shortcuts

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