aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/object.go
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2017-11-06 13:30:42 +0200
committerJeremy Stribling <strib@alum.mit.edu>2017-11-29 10:41:19 -0800
commit3f0b1ff37b64108cfed1b57ea4ae1f1566592905 (patch)
treee27f0a736634febf14d9186ea6bdb11a897bd9f5 /plumbing/storer/object.go
parentac1914eac3c20efa63de8809229994364ad9639b (diff)
downloadgo-git-3f0b1ff37b64108cfed1b57ea4ae1f1566592905.tar.gz
Address CI and move code around
Diffstat (limited to 'plumbing/storer/object.go')
-rw-r--r--plumbing/storer/object.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plumbing/storer/object.go b/plumbing/storer/object.go
index 5d043cb..bd34be8 100644
--- a/plumbing/storer/object.go
+++ b/plumbing/storer/object.go
@@ -43,10 +43,12 @@ type EncodedObjectStorer interface {
// ForEachObjectHash iterates over all the (loose) object hashes
// in the repository without necessarily having to read those objects.
// Objects only inside pack files may be omitted.
+ // If ErrStop is sent the iteration is stop but no error is returned.
ForEachObjectHash(func(plumbing.Hash) error) error
// LooseObjectTime looks up the (m)time associated with the
- // loose object (that is not in a pack file). Implementations
- // may
+ // loose object (that is not in a pack file). Some
+ // implementations (e.g. without loose objects)
+ // always return an error.
LooseObjectTime(plumbing.Hash) (time.Time, error)
// DeleteLooseObject deletes a loose object if it exists.
DeleteLooseObject(plumbing.Hash) error