aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-27 21:14:25 +0200
committerMichael Muré <batolettre@gmail.com>2020-09-29 20:42:21 +0200
commitd8b49e025a01e45cfc90bb11b8a0645b616ec561 (patch)
treec88388d6935326f443e9286c7c3a33e2e5a6e857 /repository/repo.go
parenteb88f0e4463ea1aef5494314fa2a9607aaa262dd (diff)
downloadgit-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.go1
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