diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-20 23:56:49 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-24 21:27:39 +0200 |
commit | e649a503963887c1fe5cdc3deaa0e2951261d76b (patch) | |
tree | b42d3d0e6c0979f009f6f87579a776bd35a08d80 /bug/operation.go | |
parent | cbac48277000b6d6c85418f099c1daf0e4d64956 (diff) | |
download | git-bug-e649a503963887c1fe5cdc3deaa0e2951261d76b.tar.gz |
[bug] Operations: add GetAuthor method for operation interface and
BaseOp
Diffstat (limited to 'bug/operation.go')
-rw-r--r-- | bug/operation.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bug/operation.go b/bug/operation.go index 8e77eed8..2cb27d18 100644 --- a/bug/operation.go +++ b/bug/operation.go @@ -49,6 +49,8 @@ type Operation interface { GetMetadata(key string) (string, bool) // AllMetadata return all metadata for this operation AllMetadata() map[string]string + // GetAuthor return author identity + GetAuthor() identity.Interface } func hashRaw(data []byte) git.Hash { @@ -222,3 +224,7 @@ func (op *OpBase) AllMetadata() map[string]string { return result } + +func (op *OpBase) GetAuthor() identity.Interface { + return op.Author +} |