inspectgit

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package inspectgit collects version tags and unreleased commits from a git repository

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VCSData

func VCSData(path string) (*semrel.VCSData, error)

VCSData returns current version and list of unreleased changes

Open repository at `path` and traverse parents of `HEAD` to find the tag that represents previous release and the commits that haven't been released yet.

func VCSDataWithPrefix

func VCSDataWithPrefix(path string, prefix string) (*semrel.VCSData, error)

VCSDataWithPrefix returns current version and list of unreleased changes

The same as VCSData, but allows prefix before version, when searching earlier releases. Versions without the prefix are still recognized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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