func openrepo(path string) *repository {
	repo, err := git.PlainOpen(path)
	if err != nil {
		return nil
	}

	return &repository{Path: path, Repository: repo}
}
// openrepo attempts to open a repository at the given path and if successful,
// returns a repository with a reference to the open git.Repository.
openrepo attempts to open a repository at the given path and if successful,
returns a repository with a reference to the open git.Repository.
// openrepo attempts to open a repository at the given path and if successful // returns a repository with a reference to the open git . Repository .
func openrepo(path string) *repository {
	repo, err := git.PlainOpen(path)
	if err != nil {
		return nil
	}
	return &repository{Path: path, Repository: repo}
}
func openrepo ( path string ) * repository { repo , err := git . PlainOpen ( path ) if err != nil { return nil } return & repository { Path : path , Repository : repo } }
openrepo attempts to open a repository at the given path and if successful,
returns a repository with a reference to the open git.Repository.
openrepo attempts to open a repository at the given path and if successful returns a repository with a reference to the open git . Repository .