Documentation
¶
Overview ¶
Package git_check_merge provides functionality to check if git references are merged into the current HEAD. It can check multiple references at once and outputs whether each is merged or how many commits it is ahead of HEAD. It sets exit code 1 if any reference is not merged.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MergeStatus ¶
type MergeStatus struct {
// IsMerged indicates if the ref is merged into HEAD
IsMerged bool
// MergeCommit is the commit where the ref is merged (if IsMerged is true)
MergeCommit string
// CommitCount is the number of commits ahead of HEAD (if IsMerged is false)
CommitCount int
}
MergeStatus represents the merge status of a reference relative to HEAD
Click to show internal directories.
Click to hide internal directories.