diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-12 09:55:13 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-12 09:55:13 +0200 |
commit | d0443659123f912e9385e27efebe4b7da65aa2f6 (patch) | |
tree | 090a36d2618ecff259cbcabd501d33d460d1cd7a /repository/repo.go | |
parent | a85730cf5287d40a1e32d3a671ba2296c73387cb (diff) | |
download | git-bug-d0443659123f912e9385e27efebe4b7da65aa2f6.tar.gz |
more experiment
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go new file mode 100644 index 00000000..7329f183 --- /dev/null +++ b/repository/repo.go @@ -0,0 +1,20 @@ +// Package repository contains helper methods for working with a Git repo. +package repository + +// Repo represents a source code repository. +type Repo interface { + // GetPath returns the path to the repo. + GetPath() string + + // 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 +} |