Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

plumbing/cache: specify units in memory size (Fix #234) #289

Merged
merged 1 commit into from
Feb 27, 2017
Merged

plumbing/cache: specify units in memory size (Fix #234) #289

merged 1 commit into from
Feb 27, 2017

Conversation

ajnavarro
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Feb 24, 2017

Codecov Report

Merging #289 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #289   +/-   ##
=======================================
  Coverage   77.03%   77.03%           
=======================================
  Files         116      116           
  Lines        7902     7902           
=======================================
  Hits         6087     6087           
  Misses       1161     1161           
  Partials      654      654
Impacted Files Coverage Δ
plumbing/cache/object.go 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39f43b5...ae887c9. Read the comment docs.

@@ -3,12 +3,14 @@ package cache
import "srcd.works/go-git.v4/plumbing"

const (
Byte = 1 << (iota * 10)
Byte = FileSize(1 << (iota * 10))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Byte FileSize = 1 << (iota * 10) is probably more idiomatic.

@smola smola merged commit 0e9dea1 into src-d:master Feb 27, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants