diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-12-20 19:11:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 19:11:16 +0100 |
commit | 50725139e8b96f88d74e253c8312fd4864640771 (patch) | |
tree | 70d0c7ce9b0d9201a3e94b19948d14b815337c76 /plumbing/cache/common.go | |
parent | ca59809a0c74f6af498347a102a64242e26b0ab0 (diff) | |
parent | e39559fba6ea936c5f4659c03c22f9a5a256a4d7 (diff) | |
download | go-git-50725139e8b96f88d74e253c8312fd4864640771.tar.gz |
Merge pull request #698 from jfontan/improvement/use-decoder-cache
plumbing: cache, enforce the use of cache in packfile decoder
Diffstat (limited to 'plumbing/cache/common.go')
-rw-r--r-- | plumbing/cache/common.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plumbing/cache/common.go b/plumbing/cache/common.go index 9efc26c..e77baf0 100644 --- a/plumbing/cache/common.go +++ b/plumbing/cache/common.go @@ -11,6 +11,8 @@ const ( type FileSize int64 +const DefaultMaxSize FileSize = 96 * MiByte + // Object is an interface to a object cache. type Object interface { // Put puts the given object into the cache. Whether this object will |