123456789101112131415161718192021222324252627 |
- package git
- import (
- "path/filepath"
- )
- type Repository struct {
- Path string
- commitCache map[sha1]*Commit
- tagCache map[sha1]*Tag
- }
- func OpenRepository(repoPath string) (*Repository, error) {
- repoPath, err := filepath.Abs(repoPath)
- if err != nil {
- return nil, err
- }
- return &Repository{Path: repoPath}, nil
- }
|