aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/commitgraph/file.go
Commit message (Collapse)AuthorAgeFilesLines
* plumbing: commitgraph, fix types and handle commit-graph-chainsAndrew Thornton2023-10-081-0/+6
| | | | | | | | | Unfortunately the original variant makes some incorrect typing assumptions about commit-graphs which make handling graph chains difficult to do correctly. This creates a new subpackage and deprecates the old one. It then adds support commit graph chains. Signed-off-by: Andrew Thornton <art27@cantab.net>
* plumbing: commitgraph, allow SHA256 commit-graphsAndrew Thornton2023-09-301-11/+24
| | | | | | | | Since the build-tag sha256 was introduced the commit graph code should be switched to use hash.Size and only use a graph if it has the correct hash version for the version of go-git that is built. Signed-off-by: Andrew Thornton <art27@cantab.net>
* error strings: Don't capitalize, use periods, or newlinesAbhinav Gupta2021-12-041-3/+3
| | | | | | | | | | | | | | | | | | | | | 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-2/+2
|
* *: avoid unnecessary conversionsChristian Muehlhaeuser2019-07-291-1/+1
| | | | | | | No need to convert these values, they're already of the right type. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit a1d8a7ac8bd0e4aff0f27dbb8bb37b8bd13a1346)
* plumbing: format/commitgraph, rename structs/fields to follow the terms used ↵Filip Navara2019-04-251-7/+7
| | | | | | by git more closely Signed-off-by: Filip Navara <navara@emclient.com>
* plumbing: format/commitgraph, clean up error handlingFilip Navara2019-04-251-2/+2
| | | | Signed-off-by: Filip Navara <navara@emclient.com>
* Split OpenFileIndex into smaller functionsFilip Navara2019-04-241-31/+50
| | | | 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/+240
files Signed-off-by: Filip Navara <filip.navara@gmail.com>