git/odb/pack: assign V2Width

This commit is contained in:
Taylor Blau 2017-07-14 17:46:21 -06:00
parent 91d694b546
commit 4982c440cb

@ -7,6 +7,16 @@ import (
"io"
)
const (
// MagicWidth is the width of the magic header of packfiles version 2
// and newer.
MagicWidth = 4
// VersionWidth is the width of the version following the magic header.
VersionWidth = 4
// V2Width is the total width of the header in V2.
V2Width = MagicWidth + VersionWidth
)
var (
// ErrShortFanout is an error representing situations where the entire
// fanout table could not be read, and is thus too short.