aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/commitgraph/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-2/+2
|
* *: fixed tautological error conditionsautological error conditionsChristian Muehlhaeuser2019-07-291-8/+6
| | | | | | | | | | - Added missing error handling around encodeCommitData and prevented shadowing err. - Removed tautological error checks. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 7d76176416551fc21d98bc17768d158a82281406)
* Add doc.go for commitgraph packagesFilip Navara2019-05-071-0/+1
| | | | Signed-off-by: Filip Navara <filip.navara@gmail.com>
* plumbing: format/commitgraph, rename structs/fields to follow the terms used ↵Filip Navara2019-04-251-17/+17
| | | | | | by git more closely Signed-off-by: Filip Navara <navara@emclient.com>
* Remove debug print, fix large edge count calculation to make the reencoded ↵Filip Navara2019-04-241-1/+1
| | | | | | file binary identical Signed-off-by: Filip Navara <filip.navara@gmail.com>
* Split OpenFileIndex into smaller functionsFilip Navara2019-04-241-1/+1
| | | | Signed-off-by: Filip Navara <filip.navara@gmail.com>
* Split Encoder into smaller functionsFilip Navara2019-04-241-43/+81
| | | | Signed-off-by: Filip Navara <filip.navara@gmail.com>
* plumbing: format/commitgraph, add APIs for reading and writing commit-graph ↵Filip Navara2019-04-241-0/+151
files Signed-off-by: Filip Navara <filip.navara@gmail.com>