gitrange

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package gitrange reads the range of commits a run is given: `base..head`, a single commit, or `head ^base…` when the commits stand on several commits already pushed — a branch that merged main (internal/hooks).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Args

func Args(rng string) []string

Args are the range as git log takes it: one argument a word.

func Base

func Base(rng string) string

Base is the commit the range starts after, the first one left out; "" for a range of the whole history.

func Head(rng string) string

Head is the commit the range ends at.

Types

This section is empty.

Jump to

Keyboard shortcuts

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