aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2019-04-23 00:49:04 +0200
committerGitHub <noreply@github.com>2019-04-23 00:49:04 +0200
commiteb243ba9a55ac029ab3f9b15157920c46e24078b (patch)
tree7f3de8cec7a252cc7d00c721b230c4179513b9ca /plumbing
parent7b3220f1790e35ed1596540363599099c2821b9f (diff)
parentf5c23dae1fc7508b2d5cbac5a2954203ea4c3ac2 (diff)
downloadgo-git-eb243ba9a55ac029ab3f9b15157920c46e24078b.tar.gz
Merge pull request #1123 from saracen/object-storage-open-packfile
filesystem: ObjectStorage, MaxOpenDescriptors option
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/packfile/packfile.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plumbing/format/packfile/packfile.go b/plumbing/format/packfile/packfile.go
index 69b6e85..c09286e 100644
--- a/plumbing/format/packfile/packfile.go
+++ b/plumbing/format/packfile/packfile.go
@@ -414,6 +414,11 @@ func (p *Packfile) ID() (plumbing.Hash, error) {
return hash, nil
}
+// Scanner returns the packfile's Scanner
+func (p *Packfile) Scanner() *Scanner {
+ return p.s
+}
+
// Close the packfile and its resources.
func (p *Packfile) Close() error {
closer, ok := p.file.(io.Closer)