diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2019-04-23 00:49:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 00:49:04 +0200 |
commit | eb243ba9a55ac029ab3f9b15157920c46e24078b (patch) | |
tree | 7f3de8cec7a252cc7d00c721b230c4179513b9ca /plumbing | |
parent | 7b3220f1790e35ed1596540363599099c2821b9f (diff) | |
parent | f5c23dae1fc7508b2d5cbac5a2954203ea4c3ac2 (diff) | |
download | go-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.go | 5 |
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) |