aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/encoder.go
Commit message (Collapse)AuthorAgeFilesLines
* *: Support variable length plumbing.HashPaulo Gomes2023-03-081-4/+3
| | | | | | | | | | | | 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>
* sha1: Add collision resistent implementationPaulo Gomes2022-11-251-3/+3
| | | | | | | | | | | | | | | | | | | Implement the same SHA1 collision resistent algorithm used by both the Git CLI and libgit2. Only commits with input that match the unavoidable bit conditions will be further processed, which will result in different hashes. Which is the same behaviour experienced in the Git CLI and Libgit2. Users can override the hash algorithm used with: hash.RegisterHash(crypto.SHA1, sha1.New) xref links: https://github.com/libgit2/libgit2/pull/4136/commits/2dfd1294f7a694bfa9e864a9489ae3cb318a5ed0 https://github.com/git/git/commit/28dc98e343ca4eb370a29ceec4c19beac9b5c01e Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-1/+1
|
* plumbing: idxfile, Crc32 to CRC32 and return ok from findHashIndexMiguel Molina2018-08-101-1/+1
| | | | Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
* plumbing/format/idxfile: add new Index and MemoryIndexMiguel Molina2018-07-191-53/+48
| | | | Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
* format: idxfile, support for >2Gb packfilesMáximo Cuadros2017-07-271-1/+16
|
* 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.
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-1/+1
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* package plumbing documentation improvements (#248)Máximo Cuadros2017-02-071-3/+4
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-1/+1
|
* new plumbing package (#118)Máximo Cuadros2016-11-081-0/+131
* plumbing: now core was renamed to core, and formats and clients moved inside