branches

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package branches provides logic for finding and managing branches across multiple git repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MergedBranch

type MergedBranch struct {
	RepoPath   string
	RepoName   string
	Branch     string
	LastCommit time.Time
}

MergedBranch represents a branch that has been merged into the default branch.

func FindMerged

func FindMerged(repos []string) ([]MergedBranch, error)

FindMerged scans the given repositories and returns branches that have been merged into each repo's default branch. The current branch and the default branch itself are excluded from results.

func (MergedBranch) Label

func (m MergedBranch) Label() string

Label returns a display string for the merged branch in the form "repo: branch".

Jump to

Keyboard shortcuts

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