aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/decoder.go
Commit message (Collapse)AuthorAgeFilesLines
* *: Support variable length plumbing.HashPaulo Gomes2023-03-081-1/+2
| | | | | | | | | | | | The variable length for plumbing.Hash is defined at build time, blocked by tag sha256. This approach was a trade-off between keeping backwards compatibility while making progress towards supporting SHA256 with a small amount of changes. Relates to the SHA256 implementation, defined in #706. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* error strings: Don't capitalize, use periods, or newlinesAbhinav Gupta2021-12-041-2/+2
| | | | | | | | | | | | | | | | | | | | | Per [Go Code Review Comments][1], > Error strings should not be capitalized (unless beginning with proper > nouns or acronyms) or end with punctuation staticcheck's [ST1005][2] also complains about these. For example, ``` object_walker.go:63:10: error strings should not be capitalized (ST1005) object_walker.go:101:10: error strings should not be capitalized (ST1005) object_walker.go:101:10: error strings should not end with punctuation or a newline (ST1005) plumbing/format/commitgraph/file.go:17:26: error strings should not be capitalized (ST1005) ``` This fixes all instances of this issue reported by staticcheck. [1]: https://github.com/golang/go/wiki/CodeReviewComments#error-strings [2]: https://staticcheck.io/docs/checks/#ST1005
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-1/+1
|
* Fix typos in comments, variables and function namesOleksandr Redko2019-10-241-1/+1
| | | | Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
* plumbing/format: idxfile, unsigned values are never < 0Christian Muehlhaeuser2019-07-291-4/+0
| | | | | Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 047bb4f6d0657389ddd4ca3230ff3bee08d66a6b)
* plumbing: idxfile, Crc32 to CRC32 and return ok from findHashIndexMiguel Molina2018-08-101-2/+2
| | | | Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
* plumbing/format/idxfile: add new Index and MemoryIndexMiguel Molina2018-07-191-45/+64
| | | | Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
* idxfile: optimise allocations in readObjectNamesDavid Symonds2018-05-301-4/+4
| | | | | | | This makes all the required Entry allocations in one go, instead of huge amounts of small individual allocations. Signed-off-by: David Symonds <dsymonds@golang.org>
* format: idxfile, support for >2Gb packfilesMáximo Cuadros2017-07-271-0/+14
|
* packfile: create packfile.Index and reuse itSantiago M. Mola2017-07-261-1/+1
| | | | | | | | | | | | | | | There was an internal type (i.e. storage/filesystem.idx) to use as in-memory index for packfiles. This was not convenient to reuse in the packfile. This commit creates a new representation (format/packfile.Index) that can be converted to and from idxfile.Idxfile. A packfile.Index now contains the functionality that was scattered on storage/filesystem.idx and packfile.Decoder's internals. storage/filesystem now reuses packfile.Index instances and this also results in higher cache hit ratios when resolving deltas.
* Use buffered IO for decoding index files.JP Sugarbroad2017-07-101-2/+3
| | | | This reduces syscall CPU time from >40% to <10% in my local repository.
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-2/+2
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* Return values of Read not checked (fix #65)Antonio Jesus Navarro Perez2017-03-021-4/+4
|
* package plumbing documentation improvements (#248)Máximo Cuadros2017-02-071-4/+3
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-2/+2
|
* new plumbing package (#118)Máximo Cuadros2016-11-081-0/+148
* plumbing: now core was renamed to core, and formats and clients moved inside