blob: 2611324f0283c4b994daf7f1547de5db6cd0c6f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Package repository contains helper methods for working with a Git repo.
package repository
import "github.com/MichaelMure/git-bug/util"
// Repo represents a source code repository.
type Repo interface {
// GetPath returns the path to the repo.
GetPath() string
// GetUserName returns the name the the user has used to configure git
GetUserName() (string, error)
// GetUserEmail returns the email address that the user has used to configure git.
GetUserEmail() (string, error)
// GetCoreEditor returns the name of the editor that the user has used to configure git.
GetCoreEditor() (string, error)
// PullRefs pull git refs from a remote
PullRefs(remote string, refPattern string) error
// PushRefs push git refs to a remote
PushRefs(remote string, refPattern string) error
// StoreData will store arbitrary data and return the corresponding hash
StoreData([]byte) (util.Hash, error)
}
|