1// Package repository contains helper methods for working with a Git repo.
2package repository
3
4// Repo represents a source code repository.
5type Repo interface {
6 // GetPath returns the path to the repo.
7 GetPath() string
8
9 // GetUserName returns the name the the user has used to configure git
10 GetUserName() (string, error)
11
12 // GetUserEmail returns the email address that the user has used to configure git.
13 GetUserEmail() (string, error)
14
15 // GetCoreEditor returns the name of the editor that the user has used to configure git.
16 GetCoreEditor() (string, error)
17
18 // PullRefs pull git refs from a remote
19 PullRefs(remote string, refPattern string) error
20
21 // PushRefs push git refs to a remote
22 PushRefs(remote string, refPattern string) error
23}