Welcome to mirror list, hosted at ThFree Co, Russian Federation.

repo.go « git2goutil « gitaly-git2go « cmd - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 259da77e84fc17fa9d31f79f616af9ac9f62720a (plain)
1
2
3
4
5
6
7
8
9
10
package git2goutil

import (
	git "github.com/libgit2/git2go/v33"
)

// OpenRepository opens the repository located at path as a Git2Go repository.
func OpenRepository(path string) (*git.Repository, error) {
	return git.OpenRepositoryExtended(path, git.RepositoryOpenFromEnv, "")
}