branch

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package branch implements the "branch" CLI command. It finds the merge-base between HEAD and a base branch, then runs golangci-lint with --new-from-rev=<merge-base> so that only issues introduced on the current branch are reported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config

	Flags   *ff.FlagSet
	Command *ff.Command
	// contains filtered or unexported fields
}

Config bundles the ff/v4 flag set, command node, optional base-branch override (-B/--base), and the shared root config for the branch subcommand.

func New

func New(parent *root.Config) *Config

New self-registers the branch subcommand under parent.

Jump to

Keyboard shortcuts

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