Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

packfile: Rename package to packfile

Runxi Yu 2812ee73 645f1df9

+5 -5
+1 -1
packfile/entry.go
··· 1 - package pack 1 + package packfile 2 2 3 3 import ( 4 4 "fmt"
+2 -2
packfile/ingest/header.go
··· 31 31 32 32 // parseAndValidatePackHeader validates one already-read PACK header. 33 33 func parseAndValidatePackHeader(hdr [packHeaderSize]byte) (HeaderInfo, error) { 34 - if binary.BigEndian.Uint32(hdr[:4]) != pack.Signature { 34 + if binary.BigEndian.Uint32(hdr[:4]) != packfile.Signature { 35 35 return HeaderInfo{}, &InvalidPackHeaderError{Reason: "signature mismatch"} 36 36 } 37 37 38 38 version := binary.BigEndian.Uint32(hdr[4:8]) 39 - if !pack.VersionSupported(version) { 39 + if !packfile.VersionSupported(version) { 40 40 return HeaderInfo{}, &InvalidPackHeaderError{ 41 41 Reason: fmt.Sprintf("unsupported version %d", version), 42 42 }
+2 -2
packfile/pack.go
··· 1 - // Package pack provides Git packfile format parsing primitives. 2 - package pack 1 + // Package packfile provides Git packfile format parsing primitives. 2 + package packfile 3 3 4 4 import ( 5 5 "fmt"