git

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferModuleVersion

func InferModuleVersion(dir string) (string, error)

InferModuleVersion returns the version of the module declared in the given directory. This will be either the work tree commit's tag, or it will be the most recent tag with a short revhash appended to it.

func TopLevel

func TopLevel(dir string) (string, error)

TopLevel returns the root of the git project containing the given directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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