gitobjectid

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

Hash calculates git object IDs for files. Object IDs are read the first time a digest is requested from the git repository.

func New

func New(gitRepositoryDir string, debugLogf PrintfFn) *Hash

func (*Hash) File

func (h *Hash) File(absPath string) (*digest.Digest, error)

File calculcates the git object ID for the file at absPath.

type PrintfFn

type PrintfFn func(format string, a ...any)

Jump to

Keyboard shortcuts

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