aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/writer.go
diff options
context:
space:
mode:
authorMiguel Molina <miguel@erizocosmi.co>2018-08-10 12:33:56 +0200
committerMiguel Molina <miguel@erizocosmi.co>2018-08-10 12:33:56 +0200
commit8d75d239e93474e4287870e4e5143da14e2c360d (patch)
treec93f6da98b9d51a53a3c6a49135947f4e6b65bc6 /plumbing/format/idxfile/writer.go
parentb944bc45af20b7362786f014fba1bbd72ba7fc76 (diff)
downloadgo-git-8d75d239e93474e4287870e4e5143da14e2c360d.tar.gz
plumbing: idxfile, Crc32 to CRC32 and return ok from findHashIndex
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Diffstat (limited to 'plumbing/format/idxfile/writer.go')
-rw-r--r--plumbing/format/idxfile/writer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/idxfile/writer.go b/plumbing/format/idxfile/writer.go
index 89b79cd..aa919e7 100644
--- a/plumbing/format/idxfile/writer.go
+++ b/plumbing/format/idxfile/writer.go
@@ -132,7 +132,7 @@ func (w *Writer) createIndex() (*MemoryIndex, error) {
idx.Names = append(idx.Names, make([]byte, 0))
idx.Offset32 = append(idx.Offset32, make([]byte, 0))
- idx.Crc32 = append(idx.Crc32, make([]byte, 0))
+ idx.CRC32 = append(idx.CRC32, make([]byte, 0))
}
idx.Names[bucket] = append(idx.Names[bucket], o.Hash[:]...)
@@ -148,7 +148,7 @@ func (w *Writer) createIndex() (*MemoryIndex, error) {
buf.Truncate(0)
binary.WriteUint32(buf, uint32(o.CRC32))
- idx.Crc32[bucket] = append(idx.Crc32[bucket], buf.Bytes()...)
+ idx.CRC32[bucket] = append(idx.CRC32[bucket], buf.Bytes()...)
}
for j := last + 1; j < 256; j++ {