diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-27 21:14:25 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-09-29 20:42:21 +0200 |
commit | d8b49e025a01e45cfc90bb11b8a0645b616ec561 (patch) | |
tree | c88388d6935326f443e9286c7c3a33e2e5a6e857 /repository/repo.go | |
parent | eb88f0e4463ea1aef5494314fa2a9607aaa262dd (diff) | |
download | git-bug-d8b49e025a01e45cfc90bb11b8a0645b616ec561.tar.gz |
repo: ReadTree must accept either a commit or a tree hash
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go index 2eb27e82..4b45a1c5 100644 --- a/repository/repo.go +++ b/repository/repo.go @@ -82,6 +82,7 @@ type RepoData interface { StoreTree(mapping []TreeEntry) (Hash, error) // ReadTree will return the list of entries in a Git tree + // The given hash could be from either a commit or a tree ReadTree(hash Hash) ([]TreeEntry, error) // StoreCommit will store a Git commit with the given Git tree |