aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 11:54:21 +0800
committerGravatar Runxi Yu2026-03-06 11:55:56 +0800
commitc62c5544fa23378843a3383a9dcd4494e5ea33bc (patch)
tree8b825a36767fe0ba3fb44f27cb634047c4c0318f /format/commitgraph/errors.go
parentformat/pack/ingest: Fix delta apply import (diff)
signatureNo signature
format/commitgraph: Split into ./read and ./ v0.1.60
Diffstat (limited to 'format/commitgraph/errors.go')
-rw-r--r--format/commitgraph/errors.go58
1 files changed, 0 insertions, 58 deletions
diff --git a/format/commitgraph/errors.go b/format/commitgraph/errors.go
deleted file mode 100644
index 0b7b7b6f..00000000
--- a/format/commitgraph/errors.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package commitgraph
-
-import (
- "fmt"
-
- "codeberg.org/lindenii/furgit/objectid"
-)
-
-// ErrNotFound reports a missing commit graph entry by object ID.
-type ErrNotFound struct {
- OID objectid.ObjectID
-}
-
-// Error implements error.
-func (err *ErrNotFound) Error() string {
- return fmt.Sprintf("format/commitgraph: object not found: %s", err.OID)
-}
-
-// ErrPositionOutOfRange reports an invalid graph position.
-type ErrPositionOutOfRange struct {
- Pos Position
-}
-
-// Error implements error.
-func (err *ErrPositionOutOfRange) Error() string {
- return fmt.Sprintf("format/commitgraph: position out of range: graph=%d index=%d", err.Pos.Graph, err.Pos.Index)
-}
-
-// ErrMalformed reports malformed commit-graph data.
-type ErrMalformed struct {
- Path string
- Reason string
-}
-
-// Error implements error.
-func (err *ErrMalformed) Error() string {
- return fmt.Sprintf("format/commitgraph: malformed %q: %s", err.Path, err.Reason)
-}
-
-// ErrUnsupportedVersion reports unsupported commit-graph version.
-type ErrUnsupportedVersion struct {
- Version uint8
-}
-
-// Error implements error.
-func (err *ErrUnsupportedVersion) Error() string {
- return fmt.Sprintf("format/commitgraph: unsupported version %d", err.Version)
-}
-
-// ErrBloomUnavailable reports missing changed-path bloom data at one position.
-type ErrBloomUnavailable struct {
- Pos Position
-}
-
-// Error implements error.
-func (err *ErrBloomUnavailable) Error() string {
- return fmt.Sprintf("format/commitgraph: bloom unavailable at position graph=%d index=%d", err.Pos.Graph, err.Pos.Index)
-}