aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/object/common.go')
-rw-r--r--plumbing/object/common.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/plumbing/object/common.go b/plumbing/object/common.go
new file mode 100644
index 0000000..3591f5f
--- /dev/null
+++ b/plumbing/object/common.go
@@ -0,0 +1,12 @@
+package object
+
+import (
+ "bufio"
+ "sync"
+)
+
+var bufPool = sync.Pool{
+ New: func() interface{} {
+ return bufio.NewReader(nil)
+ },
+}