git_check_merge

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 4 Imported by: 0

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

func Handle

func Handle(args []string) error

Handle processes the git check-merge command

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

Jump to

Keyboard shortcuts

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