lib

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CommitSeparator = "\n# ------------------------ >8 ------------------------"

Variables

This section is empty.

Functions

func DoesCommitContainCoAuthors

func DoesCommitContainCoAuthors(input string) bool

func LoadCommitMessage

func LoadCommitMessage(filePath string) (string, error)

func PrepareCommitMessage

func PrepareCommitMessage(input string, coAuthors []CoAuthor) string

Types

type CoAuthor

type CoAuthor struct {
	Name  string
	Email string
}

func (CoAuthor) String

func (c CoAuthor) String() string

func (CoAuthor) UserID

func (c CoAuthor) UserID() string

type CoAuthors

type CoAuthors []CoAuthor

func (CoAuthors) Any

func (authors CoAuthors) Any() bool

func (*CoAuthors) From

func (authors *CoAuthors) From(bytes []byte) error

func (CoAuthors) Get

func (authors CoAuthors) Get(name string) (CoAuthor, error)

func (CoAuthors) Names

func (authors CoAuthors) Names() []string

func (CoAuthors) String

func (authors CoAuthors) String() string

func (CoAuthors) Subset

func (authors CoAuthors) Subset(names []string) []CoAuthor

Jump to

Keyboard shortcuts

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