stackutils

package
v1.120.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNoRebaseInProgress added in v1.120.0

func CheckNoRebaseInProgress() error

CheckNoRebaseInProgress returns an error when a stack reorder or a Git rebase is currently in progress. Stack commands that mutate branches or commits call this up front: Git does not reliably block those operations mid-rebase (for example `checkout -b` and `commit --amend` succeed once the index is clean), and running them can corrupt the stack. A paused reorder counts as in progress even between branches, when no Git rebase is active.

func CommitSubject

func CommitSubject(gr git.GitRunner, hash string) (string, error)

func CreateShaBranch

func CreateShaBranch(f cmdutils.Factory, sha string, title string) (string, error)

func GenerateStackSha

func GenerateStackSha(message string, title string, author string, timestamp time.Time) (string, error)

func HasComment

func HasComment(words []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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