git

package
v0.0.0-...-cbc8ea9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = fmt.Errorf("not found")

ErrNotFound signifies the file was not found.

Functions

func FileHistory

func FileHistory(path string, repo *git.Repository) ([]string, error)

FileHistory will trace all the versions of a file in the git repository and return a list of sha1 hashes of that file.

func GetFileHash

func GetFileHash(path string) (string, error)

GetFileHash calculates the sha1 hash sum of the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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