commit

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAuthorList

func BuildAuthorList(all []string, current string) []string

BuildAuthorList deduplicates all (may contain duplicates), sorts alphabetically, then prepends current as the first entry (removing it from its sorted position if present). If current is empty, the sorted deduplicated list is returned as-is.

func FillOutForm

func FillOutForm(cfg *config.AppConfig, defaults tui.CommitOption) ([]byte, tui.CommitOption, error)

FillOutForm presents the commit TUI form. Group 1: type select + commit message fields (scope, subject, body, footer). Group 2: commit options (author, all, amend, no-verify, signoff, allow-empty).

Group 2 is skipped when defaults.AnyOptionSet() is true (flags were passed).

Returns the assembled commit message bytes and the (possibly user-modified) options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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