commit

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 12 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 {
	Authors      []Author
	Placeholders Placeholders
	LocalBranch  string
	RemoteBranch string
	BranchRefs   []string
	Remotes      []string
	HeadCommit   HeadCommit
	Emojis       []emoji.Emoji
	Amend        bool
}

type HeadCommit added in v0.2.0

type HeadCommit struct {
	Hash    string
	When    time.Time
	Emoji   emoji.Emoji
	Summary string
	Body    string
}

type Options added in v0.1.1

type Options struct {
	Apply bool
	Amend bool
}

type Placeholders added in v0.2.0

type Placeholders struct {
	Hash    string
	Summary string
	Body    string
}

Jump to

Keyboard shortcuts

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