aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-12 15:14:37 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-12 21:32:09 +0200
commitcda8114fda8d349bbaeefb42cc33ba715d41cf08 (patch)
tree45c96a8d07db89ff66519ae1e29b44648c1b5e37 /repository/repo.go
parentdf67212fee5ae5381b13b2c7d6ce92e1bdb66e0f (diff)
downloadgit-bug-cda8114fda8d349bbaeefb42cc33ba715d41cf08.tar.gz
store user info in the datastore
Diffstat (limited to 'repository/repo.go')
-rw-r--r--repository/repo.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go
index 11bb132e..ef7215ee 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -1,6 +1,8 @@
// Package repository contains helper methods for working with a Git repo.
package repository
+type Hash string
+
// Repo represents a source code repository.
type Repo interface {
// GetPath returns the path to the repo.
@@ -20,4 +22,7 @@ type Repo interface {
// 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) (Hash, error)
}