package
0.0.0-20231024134211-210767f15cd2
Repository: https://github.com/khulnasoft-lab/go-vulndb.git
Documentation: pkg.go.dev
# Functions
AllCommitDates returns the oldest and newest commit timestamps for every file in the repo at the given reference, where the filename begins with prefix.
Clone returns a repo by cloning the repo at repoURL.
CloneOrOpen clones repoPath if it is an HTTP(S) URL, or opens it from the local disk otherwise.
HeadHash returns the hash of the repo's HEAD.
Open returns a repo by opening the repo at the local path dirpath.
ParseGitHubRepo parses a string of the form owner/repo or github.com/owner/repo.
ReadTxtarRepo converts a txtar file to a single-commit repo.
Root returns the root tree of the repo at HEAD.
# Structs
Dates is the oldest and newest commit timestamps for a file.
ReferenceName is a git reference.