Categorygithub.com/bep/gitmap
modulepackage
1.6.0
Repository: https://github.com/bep/gitmap.git
Documentation: pkg.go.dev

# README

GitMap

GoDoc Build Status Build status Go Report Card

A fairly fast way to create a map from all the filenames to info objects for a given revision of a Git repo.

This library uses os/exec to talk to Git. There are faster ways to do this by using some Go Git-lib or C bindings, but that adds dependencies I really don't want or need.

If some git log kung fu master out there have suggestions for improvements, please open an issue or a PR.

# Functions

Map creates a GitRepo with a file map from the given options.

# Variables

No description provided by the author

# Structs

GitInfo holds information about a Git commit.
No description provided by the author
Options for the Map function.

# Interfaces

Runner is an interface for running Git commands, as implemented buy *exec.Cmd.

# Type aliases

GitMap maps filenames to Git revision information.