Documentation
¶
Overview ¶
Package hash provides a way for managing the underlying hash implementations used across go-git.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedHashFunction = errors.New("unsupported hash function")
ErrUnsupportedHashFunction is returned when an unsupported hash function is used.
Functions ¶
func FromObjectFormat ¶
func FromObjectFormat(f format.ObjectFormat) (hash.Hash, error)
FromObjectFormat returns the correct Hash to be used based on the ObjectFormat being used. If the ObjectFormat is not recognised, returns ErrInvalidObjectFormat.
Types ¶
Click to show internal directories.
Click to hide internal directories.