diff options
| -rw-r--r-- | cmd/index-pack/main.go | 2 | ||||
| -rw-r--r-- | commitquery/commit.go | 2 | ||||
| -rw-r--r-- | commitquery/context.go | 2 | ||||
| -rw-r--r-- | commitquery/graph_pos.go | 2 | ||||
| -rw-r--r-- | commitquery/node.go | 2 | ||||
| -rw-r--r-- | commitquery/oid.go | 2 | ||||
| -rw-r--r-- | commitquery/parent.go | 2 | ||||
| -rw-r--r-- | format/commitgraph/TODO (renamed from commitgraph/TODO) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/bloom.go (renamed from commitgraph/bloom/bloom.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/constants.go (renamed from commitgraph/bloom/constants.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/contain.go (renamed from commitgraph/bloom/contain.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/errors.go (renamed from commitgraph/bloom/errors.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/filter.go (renamed from commitgraph/bloom/filter.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/key.go (renamed from commitgraph/bloom/key.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/murmur.go (renamed from commitgraph/bloom/murmur.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/bloom/settings.go (renamed from commitgraph/bloom/settings.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/constants.go (renamed from commitgraph/constants.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/doc.go (renamed from commitgraph/doc.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/bloom.go (renamed from commitgraph/read/bloom.go) | 2 | ||||
| -rw-r--r-- | format/commitgraph/read/close.go (renamed from commitgraph/read/close.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/commitat.go (renamed from commitgraph/read/commitat.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/commits.go (renamed from commitgraph/read/commits.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/doc.go (renamed from commitgraph/read/doc.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/edges.go (renamed from commitgraph/read/edges.go) | 2 | ||||
| -rw-r--r-- | format/commitgraph/read/errors.go (renamed from commitgraph/read/errors.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/generation.go (renamed from commitgraph/read/generation.go) | 2 | ||||
| -rw-r--r-- | format/commitgraph/read/hash.go (renamed from commitgraph/read/hash.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/iterators.go (renamed from commitgraph/read/iterators.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/layer.go (renamed from commitgraph/read/layer.go) | 2 | ||||
| -rw-r--r-- | format/commitgraph/read/layer_close.go (renamed from commitgraph/read/layer_close.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/layer_lookup.go (renamed from commitgraph/read/layer_lookup.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/layer_open.go (renamed from commitgraph/read/layer_open.go) | 2 | ||||
| -rw-r--r-- | format/commitgraph/read/layer_parse.go (renamed from commitgraph/read/layer_parse.go) | 4 | ||||
| -rw-r--r-- | format/commitgraph/read/layer_pos.go (renamed from commitgraph/read/layer_pos.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/layerinfo.go (renamed from commitgraph/read/layerinfo.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/lookup.go (renamed from commitgraph/read/lookup.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/mode.go (renamed from commitgraph/read/mode.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/oidat.go (renamed from commitgraph/read/oidat.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/open.go (renamed from commitgraph/read/open.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/open_chain.go (renamed from commitgraph/read/open_chain.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/open_single.go (renamed from commitgraph/read/open_single.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/parents.go (renamed from commitgraph/read/parents.go) | 2 | ||||
| -rw-r--r-- | format/commitgraph/read/position.go (renamed from commitgraph/read/position.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/read_test.go (renamed from commitgraph/read/read_test.go) | 4 | ||||
| -rw-r--r-- | format/commitgraph/read/reader.go (renamed from commitgraph/read/reader.go) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/HEAD (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/HEAD) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/config (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/config) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-bf985c21612a52070d8b008e6ef51edf8b609401.graph (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-bf985c21612a52070d8b008e6ef51edf8b609401.graph) | bin | 4810 -> 4810 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-dd7578d5216ca76c25b19631ba90f7498aeabbe7.graph (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-dd7578d5216ca76c25b19631ba90f7498aeabbe7.graph) | bin | 7088 -> 7088 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/packs (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/packs) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.bitmap (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.bitmap) | bin | 8234 -> 8234 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.idx (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.idx) | bin | 13252 -> 13252 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.pack (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.pack) | bin | 34730 -> 34730 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.rev (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.rev) | bin | 1792 -> 1792 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/refs/heads/master (renamed from commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/refs/heads/master) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/HEAD (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/HEAD) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/config (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/config) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/commit-graph (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/commit-graph) | bin | 9068 -> 9068 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/packs (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/packs) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.bitmap (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.bitmap) | bin | 7780 -> 7780 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.idx (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.idx) | bin | 11152 -> 11152 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.pack (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.pack) | bin | 28664 -> 28664 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.rev (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.rev) | bin | 1492 -> 1492 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/refs/heads/main (renamed from commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/refs/heads/main) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/HEAD (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/HEAD) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/config (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/config) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/commit-graph (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/commit-graph) | bin | 5912 -> 5912 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/packs (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/packs) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.bitmap (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.bitmap) | bin | 5452 -> 5452 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.idx (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.idx) | bin | 7792 -> 7792 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.pack (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.pack) | bin | 18969 -> 18969 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.rev (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.rev) | bin | 1012 -> 1012 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/refs/heads/master (renamed from commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/refs/heads/master) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/HEAD (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/HEAD) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/config (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/config) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-505cab61f8ddfa614301e8f97943112739236c6bcd19ed4d1f7c6b830cab4f62.graph (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-505cab61f8ddfa614301e8f97943112739236c6bcd19ed4d1f7c6b830cab4f62.graph) | bin | 9260 -> 9260 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-77c47bd6ca2ce17208c9361717a5823c0cb4b5ee336a14959678e060d674ffb6.graph (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-77c47bd6ca2ce17208c9361717a5823c0cb4b5ee336a14959678e060d674ffb6.graph) | bin | 6154 -> 6154 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/packs (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/packs) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.bitmap (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.bitmap) | bin | 8234 -> 8234 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.idx (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.idx) | bin | 18496 -> 18496 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.pack (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.pack) | bin | 41482 -> 41482 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.rev (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.rev) | bin | 1816 -> 1816 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/refs/heads/master (renamed from commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/refs/heads/master) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/HEAD (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/HEAD) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/config (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/config) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/commit-graph (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/commit-graph) | bin | 11960 -> 11960 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/packs (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/packs) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.bitmap (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.bitmap) | bin | 7804 -> 7804 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.idx (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.idx) | bin | 15496 -> 15496 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.pack (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.pack) | bin | 34252 -> 34252 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.rev (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.rev) | bin | 1516 -> 1516 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/refs/heads/main (renamed from commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/refs/heads/main) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/HEAD (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/HEAD) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/config (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/config) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/commit-graph (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/commit-graph) | bin | 7844 -> 7844 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/packs (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/packs) | 0 | ||||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.bitmap (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.bitmap) | bin | 5476 -> 5476 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.idx (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.idx) | bin | 10696 -> 10696 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.pack (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.pack) | bin | 22569 -> 22569 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.rev (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.rev) | bin | 1036 -> 1036 bytes | |||
| -rw-r--r-- | format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/refs/heads/master (renamed from commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/refs/heads/master) | 0 | ||||
| -rw-r--r-- | format/doc.go | 5 | ||||
| -rw-r--r-- | format/packfile/delta/apply/apply.go (renamed from packfile/delta/apply/apply.go) | 0 | ||||
| -rw-r--r-- | format/packfile/delta/apply/header.go (renamed from packfile/delta/apply/header.go) | 0 | ||||
| -rw-r--r-- | format/packfile/delta/doc.go (renamed from packfile/delta/doc.go) | 0 | ||||
| -rw-r--r-- | format/packfile/doc.go | 5 | ||||
| -rw-r--r-- | format/packfile/entry.go (renamed from packfile/entry.go) | 0 | ||||
| -rw-r--r-- | format/packfile/entry_header.go (renamed from packfile/entry_header.go) | 0 | ||||
| -rw-r--r-- | format/packfile/header.go (renamed from packfile/header.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/api.go (renamed from packfile/ingest/api.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/byteslice_reader.go (renamed from packfile/ingest/byteslice_reader.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/cache.go (renamed from packfile/ingest/cache.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/counting_writer.go (renamed from packfile/ingest/counting_writer.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/crc.go (renamed from packfile/ingest/crc.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/delta_header.go (renamed from packfile/ingest/delta_header.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/distance.go (renamed from packfile/ingest/distance.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/doc.go (renamed from packfile/ingest/doc.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/drain.go (renamed from packfile/ingest/drain.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/entry.go (renamed from packfile/ingest/entry.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/entry_header.go (renamed from packfile/ingest/entry_header.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/entry_prefix.go (renamed from packfile/ingest/entry_prefix.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/errors.go (renamed from packfile/ingest/errors.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/file_section_writer.go (renamed from packfile/ingest/file_section_writer.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/fill.go (renamed from packfile/ingest/fill.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/finalize.go (renamed from packfile/ingest/finalize.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/flush.go (renamed from packfile/ingest/flush.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/hash.go (renamed from packfile/ingest/hash.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/header.go (renamed from packfile/ingest/header.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/idx_write.go (renamed from packfile/ingest/idx_write.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/ingest.go (renamed from packfile/ingest/ingest.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/ingest_test.go (renamed from packfile/ingest/ingest_test.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/progress_write.go (renamed from packfile/ingest/progress_write.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/record_content.go (renamed from packfile/ingest/record_content.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/record_delta.go (renamed from packfile/ingest/record_delta.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/record_inflate.go (renamed from packfile/ingest/record_inflate.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/record_resolve.go (renamed from packfile/ingest/record_resolve.go) | 2 | ||||
| -rw-r--r-- | format/packfile/ingest/records.go (renamed from packfile/ingest/records.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/resolve_all.go (renamed from packfile/ingest/resolve_all.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/rev_write.go (renamed from packfile/ingest/rev_write.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/rewrite_header_trailer.go (renamed from packfile/ingest/rewrite_header_trailer.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/scan.go (renamed from packfile/ingest/scan.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/state.go (renamed from packfile/ingest/state.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/stream.go (renamed from packfile/ingest/stream.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/temp.go (renamed from packfile/ingest/temp.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha1/METADATA.txt (renamed from packfile/ingest/testdata/fixtures/sha1/METADATA.txt) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha1/base.pack (renamed from packfile/ingest/testdata/fixtures/sha1/base.pack) | bin | 81007 -> 81007 bytes | |||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha1/nonthin.pack (renamed from packfile/ingest/testdata/fixtures/sha1/nonthin.pack) | bin | 117458 -> 117458 bytes | |||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha1/thin.pack (renamed from packfile/ingest/testdata/fixtures/sha1/thin.pack) | bin | 38581 -> 38581 bytes | |||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha256/METADATA.txt (renamed from packfile/ingest/testdata/fixtures/sha256/METADATA.txt) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha256/base.pack (renamed from packfile/ingest/testdata/fixtures/sha256/base.pack) | bin | 105138 -> 105138 bytes | |||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha256/nonthin.pack (renamed from packfile/ingest/testdata/fixtures/sha256/nonthin.pack) | bin | 152284 -> 152284 bytes | |||
| -rw-r--r-- | format/packfile/ingest/testdata/fixtures/sha256/thin.pack (renamed from packfile/ingest/testdata/fixtures/sha256/thin.pack) | bin | 49412 -> 49412 bytes | |||
| -rw-r--r-- | format/packfile/ingest/thin_append.go (renamed from packfile/ingest/thin_append.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/thin_fix.go (renamed from packfile/ingest/thin_fix.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/thin_unresolved.go (renamed from packfile/ingest/thin_unresolved.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/trailer.go (renamed from packfile/ingest/trailer.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ingest/use.go (renamed from packfile/ingest/use.go) | 0 | ||||
| -rw-r--r-- | format/packfile/object_type.go (renamed from packfile/object_type.go) | 0 | ||||
| -rw-r--r-- | format/packfile/ofs.go (renamed from packfile/ofs.go) | 0 | ||||
| -rw-r--r-- | internal/testgit/repo_open_commit_graph.go | 2 | ||||
| -rw-r--r-- | network/receivepack/service/ingest_quarantine.go | 2 | ||||
| -rw-r--r-- | network/receivepack/service/result.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/delta_build_chain.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/delta_resolve_chain.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/delta_resolve_chain_start.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/delta_resolve_content.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/delta_size.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/entry_parse.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/pack.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/read_header_resolve.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/read_reader.go | 2 | ||||
| -rw-r--r-- | object/storer/packed/read_size.go | 2 | ||||
| -rw-r--r-- | packfile/doc.go | 2 | ||||
| -rw-r--r-- | reachability/reachability.go | 2 | ||||
| -rw-r--r-- | reachability/walk_expand_commits_graph.go | 2 |
177 files changed, 50 insertions, 42 deletions
diff --git a/cmd/index-pack/main.go b/cmd/index-pack/main.go index 69cf648a..30de3917 100644 --- a/cmd/index-pack/main.go +++ b/cmd/index-pack/main.go @@ -10,7 +10,7 @@ import ( objectid "codeberg.org/lindenii/furgit/object/id" objectstorer "codeberg.org/lindenii/furgit/object/storer" - "codeberg.org/lindenii/furgit/packfile/ingest" + "codeberg.org/lindenii/furgit/format/packfile/ingest" "codeberg.org/lindenii/furgit/repository" ) diff --git a/commitquery/commit.go b/commitquery/commit.go index 8e60e3fd..dff6a91c 100644 --- a/commitquery/commit.go +++ b/commitquery/commit.go @@ -1,7 +1,7 @@ package commitquery import ( - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectid "codeberg.org/lindenii/furgit/object/id" ) diff --git a/commitquery/context.go b/commitquery/context.go index df8ddd97..74f094b1 100644 --- a/commitquery/context.go +++ b/commitquery/context.go @@ -2,7 +2,7 @@ package commitquery import ( - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectid "codeberg.org/lindenii/furgit/object/id" objectstorer "codeberg.org/lindenii/furgit/object/storer" ) diff --git a/commitquery/graph_pos.go b/commitquery/graph_pos.go index b1d27129..b5bc02d8 100644 --- a/commitquery/graph_pos.go +++ b/commitquery/graph_pos.go @@ -1,6 +1,6 @@ package commitquery -import commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" +import commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" // resolveGraphPos resolves one commit-graph position to one internal query node. func (query *Query) resolveGraphPos(pos commitgraphread.Position) (nodeIndex, error) { diff --git a/commitquery/node.go b/commitquery/node.go index 5b1c7142..c0f25c55 100644 --- a/commitquery/node.go +++ b/commitquery/node.go @@ -1,7 +1,7 @@ package commitquery import ( - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectid "codeberg.org/lindenii/furgit/object/id" ) diff --git a/commitquery/oid.go b/commitquery/oid.go index 0308c85e..7f1e9db1 100644 --- a/commitquery/oid.go +++ b/commitquery/oid.go @@ -3,7 +3,7 @@ package commitquery import ( stderrors "errors" - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" giterrors "codeberg.org/lindenii/furgit/errors" "codeberg.org/lindenii/furgit/internal/peel" objectcommit "codeberg.org/lindenii/furgit/object/commit" diff --git a/commitquery/parent.go b/commitquery/parent.go index 41877975..e7703f77 100644 --- a/commitquery/parent.go +++ b/commitquery/parent.go @@ -1,7 +1,7 @@ package commitquery import ( - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectid "codeberg.org/lindenii/furgit/object/id" ) diff --git a/commitgraph/TODO b/format/commitgraph/TODO index 87e0888d..87e0888d 100644 --- a/commitgraph/TODO +++ b/format/commitgraph/TODO diff --git a/commitgraph/bloom/bloom.go b/format/commitgraph/bloom/bloom.go index 9653d595..9653d595 100644 --- a/commitgraph/bloom/bloom.go +++ b/format/commitgraph/bloom/bloom.go diff --git a/commitgraph/bloom/constants.go b/format/commitgraph/bloom/constants.go index 958e551e..958e551e 100644 --- a/commitgraph/bloom/constants.go +++ b/format/commitgraph/bloom/constants.go diff --git a/commitgraph/bloom/contain.go b/format/commitgraph/bloom/contain.go index 331b7687..331b7687 100644 --- a/commitgraph/bloom/contain.go +++ b/format/commitgraph/bloom/contain.go diff --git a/commitgraph/bloom/errors.go b/format/commitgraph/bloom/errors.go index fe38d1bc..fe38d1bc 100644 --- a/commitgraph/bloom/errors.go +++ b/format/commitgraph/bloom/errors.go diff --git a/commitgraph/bloom/filter.go b/format/commitgraph/bloom/filter.go index 395dd5ce..395dd5ce 100644 --- a/commitgraph/bloom/filter.go +++ b/format/commitgraph/bloom/filter.go diff --git a/commitgraph/bloom/key.go b/format/commitgraph/bloom/key.go index a15df904..a15df904 100644 --- a/commitgraph/bloom/key.go +++ b/format/commitgraph/bloom/key.go diff --git a/commitgraph/bloom/murmur.go b/format/commitgraph/bloom/murmur.go index 363b63ae..363b63ae 100644 --- a/commitgraph/bloom/murmur.go +++ b/format/commitgraph/bloom/murmur.go diff --git a/commitgraph/bloom/settings.go b/format/commitgraph/bloom/settings.go index 764653bd..764653bd 100644 --- a/commitgraph/bloom/settings.go +++ b/format/commitgraph/bloom/settings.go diff --git a/commitgraph/constants.go b/format/commitgraph/constants.go index 3a06a290..3a06a290 100644 --- a/commitgraph/constants.go +++ b/format/commitgraph/constants.go diff --git a/commitgraph/doc.go b/format/commitgraph/doc.go index abf5f3d3..abf5f3d3 100644 --- a/commitgraph/doc.go +++ b/format/commitgraph/doc.go diff --git a/commitgraph/read/bloom.go b/format/commitgraph/read/bloom.go index eca88c36..12dd6db3 100644 --- a/commitgraph/read/bloom.go +++ b/format/commitgraph/read/bloom.go @@ -3,7 +3,7 @@ package read import ( "encoding/binary" - "codeberg.org/lindenii/furgit/commitgraph/bloom" + "codeberg.org/lindenii/furgit/format/commitgraph/bloom" "codeberg.org/lindenii/furgit/internal/intconv" ) diff --git a/commitgraph/read/close.go b/format/commitgraph/read/close.go index f8b6141a..f8b6141a 100644 --- a/commitgraph/read/close.go +++ b/format/commitgraph/read/close.go diff --git a/commitgraph/read/commitat.go b/format/commitgraph/read/commitat.go index a39c5ccd..a39c5ccd 100644 --- a/commitgraph/read/commitat.go +++ b/format/commitgraph/read/commitat.go diff --git a/commitgraph/read/commits.go b/format/commitgraph/read/commits.go index 48984ecb..48984ecb 100644 --- a/commitgraph/read/commits.go +++ b/format/commitgraph/read/commits.go diff --git a/commitgraph/read/doc.go b/format/commitgraph/read/doc.go index 573ddc19..573ddc19 100644 --- a/commitgraph/read/doc.go +++ b/format/commitgraph/read/doc.go diff --git a/commitgraph/read/edges.go b/format/commitgraph/read/edges.go index 33a6c9fc..96ffeb6d 100644 --- a/commitgraph/read/edges.go +++ b/format/commitgraph/read/edges.go @@ -3,7 +3,7 @@ package read import ( "encoding/binary" - "codeberg.org/lindenii/furgit/commitgraph" + "codeberg.org/lindenii/furgit/format/commitgraph" "codeberg.org/lindenii/furgit/internal/intconv" ) diff --git a/commitgraph/read/errors.go b/format/commitgraph/read/errors.go index 0a32a368..0a32a368 100644 --- a/commitgraph/read/errors.go +++ b/format/commitgraph/read/errors.go diff --git a/commitgraph/read/generation.go b/format/commitgraph/read/generation.go index 53dabe2d..62e47996 100644 --- a/commitgraph/read/generation.go +++ b/format/commitgraph/read/generation.go @@ -3,7 +3,7 @@ package read import ( "encoding/binary" - "codeberg.org/lindenii/furgit/commitgraph" + "codeberg.org/lindenii/furgit/format/commitgraph" "codeberg.org/lindenii/furgit/internal/intconv" ) diff --git a/commitgraph/read/hash.go b/format/commitgraph/read/hash.go index 3a525afe..3a525afe 100644 --- a/commitgraph/read/hash.go +++ b/format/commitgraph/read/hash.go diff --git a/commitgraph/read/iterators.go b/format/commitgraph/read/iterators.go index 85c56ff1..85c56ff1 100644 --- a/commitgraph/read/iterators.go +++ b/format/commitgraph/read/iterators.go diff --git a/commitgraph/read/layer.go b/format/commitgraph/read/layer.go index 3b8abcd2..53ab1663 100644 --- a/commitgraph/read/layer.go +++ b/format/commitgraph/read/layer.go @@ -3,7 +3,7 @@ package read import ( "os" - "codeberg.org/lindenii/furgit/commitgraph/bloom" + "codeberg.org/lindenii/furgit/format/commitgraph/bloom" ) type layer struct { diff --git a/commitgraph/read/layer_close.go b/format/commitgraph/read/layer_close.go index 03dc91d5..03dc91d5 100644 --- a/commitgraph/read/layer_close.go +++ b/format/commitgraph/read/layer_close.go diff --git a/commitgraph/read/layer_lookup.go b/format/commitgraph/read/layer_lookup.go index 84095788..84095788 100644 --- a/commitgraph/read/layer_lookup.go +++ b/format/commitgraph/read/layer_lookup.go diff --git a/commitgraph/read/layer_open.go b/format/commitgraph/read/layer_open.go index 3ecd4672..21a97644 100644 --- a/commitgraph/read/layer_open.go +++ b/format/commitgraph/read/layer_open.go @@ -4,7 +4,7 @@ import ( "os" "syscall" - "codeberg.org/lindenii/furgit/commitgraph" + "codeberg.org/lindenii/furgit/format/commitgraph" "codeberg.org/lindenii/furgit/internal/intconv" objectid "codeberg.org/lindenii/furgit/object/id" ) diff --git a/commitgraph/read/layer_parse.go b/format/commitgraph/read/layer_parse.go index 2aa71428..13e36c0a 100644 --- a/commitgraph/read/layer_parse.go +++ b/format/commitgraph/read/layer_parse.go @@ -3,8 +3,8 @@ package read import ( "encoding/binary" - "codeberg.org/lindenii/furgit/commitgraph" - "codeberg.org/lindenii/furgit/commitgraph/bloom" + "codeberg.org/lindenii/furgit/format/commitgraph" + "codeberg.org/lindenii/furgit/format/commitgraph/bloom" "codeberg.org/lindenii/furgit/internal/intconv" objectid "codeberg.org/lindenii/furgit/object/id" ) diff --git a/commitgraph/read/layer_pos.go b/format/commitgraph/read/layer_pos.go index 7b87b381..7b87b381 100644 --- a/commitgraph/read/layer_pos.go +++ b/format/commitgraph/read/layer_pos.go diff --git a/commitgraph/read/layerinfo.go b/format/commitgraph/read/layerinfo.go index 83c4407d..83c4407d 100644 --- a/commitgraph/read/layerinfo.go +++ b/format/commitgraph/read/layerinfo.go diff --git a/commitgraph/read/lookup.go b/format/commitgraph/read/lookup.go index 5f1b08f6..5f1b08f6 100644 --- a/commitgraph/read/lookup.go +++ b/format/commitgraph/read/lookup.go diff --git a/commitgraph/read/mode.go b/format/commitgraph/read/mode.go index 76afa21f..76afa21f 100644 --- a/commitgraph/read/mode.go +++ b/format/commitgraph/read/mode.go diff --git a/commitgraph/read/oidat.go b/format/commitgraph/read/oidat.go index 908cbc1c..908cbc1c 100644 --- a/commitgraph/read/oidat.go +++ b/format/commitgraph/read/oidat.go diff --git a/commitgraph/read/open.go b/format/commitgraph/read/open.go index 9c708b49..9c708b49 100644 --- a/commitgraph/read/open.go +++ b/format/commitgraph/read/open.go diff --git a/commitgraph/read/open_chain.go b/format/commitgraph/read/open_chain.go index b55f3e57..b55f3e57 100644 --- a/commitgraph/read/open_chain.go +++ b/format/commitgraph/read/open_chain.go diff --git a/commitgraph/read/open_single.go b/format/commitgraph/read/open_single.go index 9ad6607f..9ad6607f 100644 --- a/commitgraph/read/open_single.go +++ b/format/commitgraph/read/open_single.go diff --git a/commitgraph/read/parents.go b/format/commitgraph/read/parents.go index deb5ea98..fcaad8b6 100644 --- a/commitgraph/read/parents.go +++ b/format/commitgraph/read/parents.go @@ -1,6 +1,6 @@ package read -import "codeberg.org/lindenii/furgit/commitgraph" +import "codeberg.org/lindenii/furgit/format/commitgraph" // ParentRef references one parent position. type ParentRef struct { diff --git a/commitgraph/read/position.go b/format/commitgraph/read/position.go index b2e1138b..b2e1138b 100644 --- a/commitgraph/read/position.go +++ b/format/commitgraph/read/position.go diff --git a/commitgraph/read/read_test.go b/format/commitgraph/read/read_test.go index bf87ec5d..c65b183e 100644 --- a/commitgraph/read/read_test.go +++ b/format/commitgraph/read/read_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "codeberg.org/lindenii/furgit/commitgraph/bloom" - "codeberg.org/lindenii/furgit/commitgraph/read" + "codeberg.org/lindenii/furgit/format/commitgraph/bloom" + "codeberg.org/lindenii/furgit/format/commitgraph/read" "codeberg.org/lindenii/furgit/internal/intconv" "codeberg.org/lindenii/furgit/internal/testgit" objectid "codeberg.org/lindenii/furgit/object/id" diff --git a/commitgraph/read/reader.go b/format/commitgraph/read/reader.go index d5c84a70..d5c84a70 100644 --- a/commitgraph/read/reader.go +++ b/format/commitgraph/read/reader.go diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/HEAD b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/HEAD index cb089cd8..cb089cd8 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/HEAD +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/HEAD diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/config b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/config index 07d359d0..07d359d0 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/config +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/config diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain index 74c46b64..74c46b64 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-bf985c21612a52070d8b008e6ef51edf8b609401.graph b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-bf985c21612a52070d8b008e6ef51edf8b609401.graph Binary files differindex c31869c1..c31869c1 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-bf985c21612a52070d8b008e6ef51edf8b609401.graph +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-bf985c21612a52070d8b008e6ef51edf8b609401.graph diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-dd7578d5216ca76c25b19631ba90f7498aeabbe7.graph b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-dd7578d5216ca76c25b19631ba90f7498aeabbe7.graph Binary files differindex 241eb3cc..241eb3cc 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-dd7578d5216ca76c25b19631ba90f7498aeabbe7.graph +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/commit-graphs/graph-dd7578d5216ca76c25b19631ba90f7498aeabbe7.graph diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/packs b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/packs index 61decf9b..61decf9b 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/packs +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/info/packs diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.bitmap b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.bitmap Binary files differindex 1508cf18..1508cf18 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.bitmap +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.bitmap diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.idx b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.idx Binary files differindex 00ee2646..00ee2646 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.idx +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.idx diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.pack b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.pack Binary files differindex c65ae27f..c65ae27f 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.pack +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.pack diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.rev b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.rev Binary files differindex d0689f72..d0689f72 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.rev +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/objects/pack/pack-15b064d6a8ef8cff520565f6db8c006b2e6f7f2f.rev diff --git a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/refs/heads/master b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/refs/heads/master index 8942d437..8942d437 100644 --- a/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/refs/heads/master +++ b/format/commitgraph/read/testdata/fixtures/sha1/chain_changed/repo.git/refs/heads/master diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/HEAD b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/HEAD index b870d826..b870d826 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/HEAD +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/HEAD diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/config b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/config index 07d359d0..07d359d0 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/config +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/config diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/commit-graph b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/commit-graph Binary files differindex 56b59a54..56b59a54 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/commit-graph +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/commit-graph diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/packs b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/packs index ecf5d272..ecf5d272 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/packs +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/info/packs diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.bitmap b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.bitmap Binary files differindex 9fec7b16..9fec7b16 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.bitmap +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.bitmap diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.idx b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.idx Binary files differindex e30cbb5a..e30cbb5a 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.idx +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.idx diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.pack b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.pack Binary files differindex 8da45eab..8da45eab 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.pack +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.pack diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.rev b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.rev Binary files differindex 3bcd2e2c..3bcd2e2c 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.rev +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/objects/pack/pack-34e9e132566989e2abfe8821731236c77f9bcbe9.rev diff --git a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/refs/heads/main b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/refs/heads/main index 090ca933..090ca933 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/refs/heads/main +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_changed/repo.git/refs/heads/main diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/HEAD b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/HEAD index cb089cd8..cb089cd8 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/HEAD +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/HEAD diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/config b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/config index 07d359d0..07d359d0 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/config +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/config diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/commit-graph b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/commit-graph Binary files differindex 28f7d06a..28f7d06a 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/commit-graph +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/commit-graph diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/packs b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/packs index 8434a002..8434a002 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/packs +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/info/packs diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.bitmap b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.bitmap Binary files differindex 64a36c71..64a36c71 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.bitmap +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.bitmap diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.idx b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.idx Binary files differindex f5e16674..f5e16674 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.idx +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.idx diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.pack b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.pack Binary files differindex 8f82b451..8f82b451 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.pack +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.pack diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.rev b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.rev Binary files differindex 64771f70..64771f70 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.rev +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/objects/pack/pack-a3da595034c94bb16b6829d757a66b7d259b9ffc.rev diff --git a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/refs/heads/master b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/refs/heads/master index 475cb2c1..475cb2c1 100644 --- a/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/refs/heads/master +++ b/format/commitgraph/read/testdata/fixtures/sha1/single_nochanged/repo.git/refs/heads/master diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/HEAD b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/HEAD index cb089cd8..cb089cd8 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/HEAD +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/HEAD diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/config b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/config index 7d1c0006..7d1c0006 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/config +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/config diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain index 4e7d76fe..4e7d76fe 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/commit-graph-chain diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-505cab61f8ddfa614301e8f97943112739236c6bcd19ed4d1f7c6b830cab4f62.graph b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-505cab61f8ddfa614301e8f97943112739236c6bcd19ed4d1f7c6b830cab4f62.graph Binary files differindex 4a93de94..4a93de94 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-505cab61f8ddfa614301e8f97943112739236c6bcd19ed4d1f7c6b830cab4f62.graph +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-505cab61f8ddfa614301e8f97943112739236c6bcd19ed4d1f7c6b830cab4f62.graph diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-77c47bd6ca2ce17208c9361717a5823c0cb4b5ee336a14959678e060d674ffb6.graph b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-77c47bd6ca2ce17208c9361717a5823c0cb4b5ee336a14959678e060d674ffb6.graph Binary files differindex 7807351d..7807351d 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-77c47bd6ca2ce17208c9361717a5823c0cb4b5ee336a14959678e060d674ffb6.graph +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/commit-graphs/graph-77c47bd6ca2ce17208c9361717a5823c0cb4b5ee336a14959678e060d674ffb6.graph diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/packs b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/packs index 3b1241c4..3b1241c4 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/packs +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/info/packs diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.bitmap b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.bitmap Binary files differindex 007fcd0e..007fcd0e 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.bitmap +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.bitmap diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.idx b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.idx Binary files differindex 248cf8fc..248cf8fc 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.idx +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.idx diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.pack b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.pack Binary files differindex 92cea7fb..92cea7fb 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.pack +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.pack diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.rev b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.rev Binary files differindex 569862ce..569862ce 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.rev +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/objects/pack/pack-04168d0884c910f505cb9fbcf045957e44ccee06d812b5e531ae666014a26ed1.rev diff --git a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/refs/heads/master b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/refs/heads/master index 29d83be8..29d83be8 100644 --- a/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/refs/heads/master +++ b/format/commitgraph/read/testdata/fixtures/sha256/chain_changed/repo.git/refs/heads/master diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/HEAD b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/HEAD index b870d826..b870d826 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/HEAD +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/HEAD diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/config b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/config index 7d1c0006..7d1c0006 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/config +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/config diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/commit-graph b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/commit-graph Binary files differindex f4dd0e0c..f4dd0e0c 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/commit-graph +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/commit-graph diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/packs b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/packs index 0f39ed89..0f39ed89 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/packs +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/info/packs diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.bitmap b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.bitmap Binary files differindex b5c5055c..b5c5055c 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.bitmap +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.bitmap diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.idx b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.idx Binary files differindex 144778cd..144778cd 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.idx +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.idx diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.pack b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.pack Binary files differindex 599ccae0..599ccae0 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.pack +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.pack diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.rev b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.rev Binary files differindex 3c093f31..3c093f31 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.rev +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/objects/pack/pack-316dbc67dac12d131591640da0c55b76387cbf1fd2a117ab3d7ca0d854a031c9.rev diff --git a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/refs/heads/main b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/refs/heads/main index 4ba32358..4ba32358 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/refs/heads/main +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_changed/repo.git/refs/heads/main diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/HEAD b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/HEAD index cb089cd8..cb089cd8 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/HEAD +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/HEAD diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/config b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/config index 7d1c0006..7d1c0006 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/config +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/config diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/commit-graph b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/commit-graph Binary files differindex f98ca4a1..f98ca4a1 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/commit-graph +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/commit-graph diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/packs b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/packs index 65184c9a..65184c9a 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/packs +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/info/packs diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.bitmap b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.bitmap Binary files differindex 53530f4c..53530f4c 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.bitmap +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.bitmap diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.idx b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.idx Binary files differindex b3a417a8..b3a417a8 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.idx +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.idx diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.pack b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.pack Binary files differindex d8dcedbf..d8dcedbf 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.pack +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.pack diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.rev b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.rev Binary files differindex e50d1a81..e50d1a81 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.rev +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/objects/pack/pack-d335453f760b064e36459d780ec9bf0e5dd596c0ee1ac6310136067c4f13438b.rev diff --git a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/refs/heads/master b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/refs/heads/master index a4e184b4..a4e184b4 100644 --- a/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/refs/heads/master +++ b/format/commitgraph/read/testdata/fixtures/sha256/single_nochanged/repo.git/refs/heads/master diff --git a/format/doc.go b/format/doc.go new file mode 100644 index 00000000..0d2ec813 --- /dev/null +++ b/format/doc.go @@ -0,0 +1,5 @@ +// Package format encapsulates various git-related file formats. +// +// These are particularly the ones that aren't necessarily associated with +// a very clear domain that they obviously belong to. +package format diff --git a/packfile/delta/apply/apply.go b/format/packfile/delta/apply/apply.go index f5006e3c..f5006e3c 100644 --- a/packfile/delta/apply/apply.go +++ b/format/packfile/delta/apply/apply.go diff --git a/packfile/delta/apply/header.go b/format/packfile/delta/apply/header.go index 69c9659a..69c9659a 100644 --- a/packfile/delta/apply/header.go +++ b/format/packfile/delta/apply/header.go diff --git a/packfile/delta/doc.go b/format/packfile/delta/doc.go index f63c96a8..f63c96a8 100644 --- a/packfile/delta/doc.go +++ b/format/packfile/delta/doc.go diff --git a/format/packfile/doc.go b/format/packfile/doc.go new file mode 100644 index 00000000..cd4aacfc --- /dev/null +++ b/format/packfile/doc.go @@ -0,0 +1,5 @@ +// Package packfile provides Git packfile format parsing primitives. +package packfile + +// TODO: This could probably be moved into object/store/packed when we get the pack ingestion semantics right? +// Oh, wait, the other stores might still want pack constants like we provide here. diff --git a/packfile/entry.go b/format/packfile/entry.go index 0f9c7c8d..0f9c7c8d 100644 --- a/packfile/entry.go +++ b/format/packfile/entry.go diff --git a/packfile/entry_header.go b/format/packfile/entry_header.go index 05664268..05664268 100644 --- a/packfile/entry_header.go +++ b/format/packfile/entry_header.go diff --git a/packfile/header.go b/format/packfile/header.go index bc859a55..bc859a55 100644 --- a/packfile/header.go +++ b/format/packfile/header.go diff --git a/packfile/ingest/api.go b/format/packfile/ingest/api.go index ce366a4f..ce366a4f 100644 --- a/packfile/ingest/api.go +++ b/format/packfile/ingest/api.go diff --git a/packfile/ingest/byteslice_reader.go b/format/packfile/ingest/byteslice_reader.go index a1570ef3..a1570ef3 100644 --- a/packfile/ingest/byteslice_reader.go +++ b/format/packfile/ingest/byteslice_reader.go diff --git a/packfile/ingest/cache.go b/format/packfile/ingest/cache.go index 9a15f55f..9a15f55f 100644 --- a/packfile/ingest/cache.go +++ b/format/packfile/ingest/cache.go diff --git a/packfile/ingest/counting_writer.go b/format/packfile/ingest/counting_writer.go index 051ad9d1..051ad9d1 100644 --- a/packfile/ingest/counting_writer.go +++ b/format/packfile/ingest/counting_writer.go diff --git a/packfile/ingest/crc.go b/format/packfile/ingest/crc.go index f55af4ff..f55af4ff 100644 --- a/packfile/ingest/crc.go +++ b/format/packfile/ingest/crc.go diff --git a/packfile/ingest/delta_header.go b/format/packfile/ingest/delta_header.go index 63fda066..110cf83b 100644 --- a/packfile/ingest/delta_header.go +++ b/format/packfile/ingest/delta_header.go @@ -1,6 +1,6 @@ package ingest -import deltaapply "codeberg.org/lindenii/furgit/packfile/delta/apply" +import deltaapply "codeberg.org/lindenii/furgit/format/packfile/delta/apply" // finalizeStreamPackHash consumes trailer bytes and verifies stream integrity. // readDeltaHeaderSizes reads source and destination sizes from one delta payload. diff --git a/packfile/ingest/distance.go b/format/packfile/ingest/distance.go index 9bc4d886..9bc4d886 100644 --- a/packfile/ingest/distance.go +++ b/format/packfile/ingest/distance.go diff --git a/packfile/ingest/doc.go b/format/packfile/ingest/doc.go index 2095068a..2095068a 100644 --- a/packfile/ingest/doc.go +++ b/format/packfile/ingest/doc.go diff --git a/packfile/ingest/drain.go b/format/packfile/ingest/drain.go index 48fb91d9..ed6ec821 100644 --- a/packfile/ingest/drain.go +++ b/format/packfile/ingest/drain.go @@ -8,7 +8,7 @@ import ( objectheader "codeberg.org/lindenii/furgit/object/header" objectid "codeberg.org/lindenii/furgit/object/id" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // drainEntryPayload inflates one entry payload from stream and returns diff --git a/packfile/ingest/entry.go b/format/packfile/ingest/entry.go index da063e68..4e2cab55 100644 --- a/packfile/ingest/entry.go +++ b/format/packfile/ingest/entry.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // scanOneEntry scans one pack entry from stream and appends one record. diff --git a/packfile/ingest/entry_header.go b/format/packfile/ingest/entry_header.go index c74fdc16..c74fdc16 100644 --- a/packfile/ingest/entry_header.go +++ b/format/packfile/ingest/entry_header.go diff --git a/packfile/ingest/entry_prefix.go b/format/packfile/ingest/entry_prefix.go index a107b4e8..a107b4e8 100644 --- a/packfile/ingest/entry_prefix.go +++ b/format/packfile/ingest/entry_prefix.go diff --git a/packfile/ingest/errors.go b/format/packfile/ingest/errors.go index f6ee9757..f6ee9757 100644 --- a/packfile/ingest/errors.go +++ b/format/packfile/ingest/errors.go diff --git a/packfile/ingest/file_section_writer.go b/format/packfile/ingest/file_section_writer.go index fa28c1a9..fa28c1a9 100644 --- a/packfile/ingest/file_section_writer.go +++ b/format/packfile/ingest/file_section_writer.go diff --git a/packfile/ingest/fill.go b/format/packfile/ingest/fill.go index eca4e4d6..eca4e4d6 100644 --- a/packfile/ingest/fill.go +++ b/format/packfile/ingest/fill.go diff --git a/packfile/ingest/finalize.go b/format/packfile/ingest/finalize.go index 6fe4edb2..6fe4edb2 100644 --- a/packfile/ingest/finalize.go +++ b/format/packfile/ingest/finalize.go diff --git a/packfile/ingest/flush.go b/format/packfile/ingest/flush.go index 96753170..96753170 100644 --- a/packfile/ingest/flush.go +++ b/format/packfile/ingest/flush.go diff --git a/packfile/ingest/hash.go b/format/packfile/ingest/hash.go index 4b739c20..4b739c20 100644 --- a/packfile/ingest/hash.go +++ b/format/packfile/ingest/hash.go diff --git a/packfile/ingest/header.go b/format/packfile/ingest/header.go index c9db0f1b..6a214828 100644 --- a/packfile/ingest/header.go +++ b/format/packfile/ingest/header.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "codeberg.org/lindenii/furgit/packfile" + "codeberg.org/lindenii/furgit/format/packfile" ) const packHeaderSize = 12 diff --git a/packfile/ingest/idx_write.go b/format/packfile/ingest/idx_write.go index 506788b9..506788b9 100644 --- a/packfile/ingest/idx_write.go +++ b/format/packfile/ingest/idx_write.go diff --git a/packfile/ingest/ingest.go b/format/packfile/ingest/ingest.go index be65ff5f..be65ff5f 100644 --- a/packfile/ingest/ingest.go +++ b/format/packfile/ingest/ingest.go diff --git a/packfile/ingest/ingest_test.go b/format/packfile/ingest/ingest_test.go index 3eb821d3..fb50d241 100644 --- a/packfile/ingest/ingest_test.go +++ b/format/packfile/ingest/ingest_test.go @@ -13,7 +13,7 @@ import ( "codeberg.org/lindenii/furgit/internal/testgit" objectid "codeberg.org/lindenii/furgit/object/id" - "codeberg.org/lindenii/furgit/packfile/ingest" + "codeberg.org/lindenii/furgit/format/packfile/ingest" ) type noExtraReadReader struct { diff --git a/packfile/ingest/progress_write.go b/format/packfile/ingest/progress_write.go index 5b9f184b..5b9f184b 100644 --- a/packfile/ingest/progress_write.go +++ b/format/packfile/ingest/progress_write.go diff --git a/packfile/ingest/record_content.go b/format/packfile/ingest/record_content.go index 4109bc01..47f5321f 100644 --- a/packfile/ingest/record_content.go +++ b/format/packfile/ingest/record_content.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // readBaseRecordContent reads canonical base content for one non-delta record. diff --git a/packfile/ingest/record_delta.go b/format/packfile/ingest/record_delta.go index 69cb8524..31fb4b62 100644 --- a/packfile/ingest/record_delta.go +++ b/format/packfile/ingest/record_delta.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - deltaapply "codeberg.org/lindenii/furgit/packfile/delta/apply" + deltaapply "codeberg.org/lindenii/furgit/format/packfile/delta/apply" ) // applyDeltaRecord applies one delta record onto base content. diff --git a/packfile/ingest/record_inflate.go b/format/packfile/ingest/record_inflate.go index b8eca25b..b8eca25b 100644 --- a/packfile/ingest/record_inflate.go +++ b/format/packfile/ingest/record_inflate.go diff --git a/packfile/ingest/record_resolve.go b/format/packfile/ingest/record_resolve.go index 5bff18ab..1ccc427b 100644 --- a/packfile/ingest/record_resolve.go +++ b/format/packfile/ingest/record_resolve.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // resolveRecord resolves one record and returns canonical type/content. diff --git a/packfile/ingest/records.go b/format/packfile/ingest/records.go index 75f157fa..75f157fa 100644 --- a/packfile/ingest/records.go +++ b/format/packfile/ingest/records.go diff --git a/packfile/ingest/resolve_all.go b/format/packfile/ingest/resolve_all.go index e0ad2281..e0ad2281 100644 --- a/packfile/ingest/resolve_all.go +++ b/format/packfile/ingest/resolve_all.go diff --git a/packfile/ingest/rev_write.go b/format/packfile/ingest/rev_write.go index f8c30c1b..f8c30c1b 100644 --- a/packfile/ingest/rev_write.go +++ b/format/packfile/ingest/rev_write.go diff --git a/packfile/ingest/rewrite_header_trailer.go b/format/packfile/ingest/rewrite_header_trailer.go index f1f18a39..f1f18a39 100644 --- a/packfile/ingest/rewrite_header_trailer.go +++ b/format/packfile/ingest/rewrite_header_trailer.go diff --git a/packfile/ingest/scan.go b/format/packfile/ingest/scan.go index de4e993c..de4e993c 100644 --- a/packfile/ingest/scan.go +++ b/format/packfile/ingest/scan.go diff --git a/packfile/ingest/state.go b/format/packfile/ingest/state.go index 797323b2..797323b2 100644 --- a/packfile/ingest/state.go +++ b/format/packfile/ingest/state.go diff --git a/packfile/ingest/stream.go b/format/packfile/ingest/stream.go index a403087a..a403087a 100644 --- a/packfile/ingest/stream.go +++ b/format/packfile/ingest/stream.go diff --git a/packfile/ingest/temp.go b/format/packfile/ingest/temp.go index d0b7862c..d0b7862c 100644 --- a/packfile/ingest/temp.go +++ b/format/packfile/ingest/temp.go diff --git a/packfile/ingest/testdata/fixtures/sha1/METADATA.txt b/format/packfile/ingest/testdata/fixtures/sha1/METADATA.txt index 5fcbfe26..5fcbfe26 100644 --- a/packfile/ingest/testdata/fixtures/sha1/METADATA.txt +++ b/format/packfile/ingest/testdata/fixtures/sha1/METADATA.txt diff --git a/packfile/ingest/testdata/fixtures/sha1/base.pack b/format/packfile/ingest/testdata/fixtures/sha1/base.pack Binary files differindex 3d7a4903..3d7a4903 100644 --- a/packfile/ingest/testdata/fixtures/sha1/base.pack +++ b/format/packfile/ingest/testdata/fixtures/sha1/base.pack diff --git a/packfile/ingest/testdata/fixtures/sha1/nonthin.pack b/format/packfile/ingest/testdata/fixtures/sha1/nonthin.pack Binary files differindex ea07c9a0..ea07c9a0 100644 --- a/packfile/ingest/testdata/fixtures/sha1/nonthin.pack +++ b/format/packfile/ingest/testdata/fixtures/sha1/nonthin.pack diff --git a/packfile/ingest/testdata/fixtures/sha1/thin.pack b/format/packfile/ingest/testdata/fixtures/sha1/thin.pack Binary files differindex 95084feb..95084feb 100644 --- a/packfile/ingest/testdata/fixtures/sha1/thin.pack +++ b/format/packfile/ingest/testdata/fixtures/sha1/thin.pack diff --git a/packfile/ingest/testdata/fixtures/sha256/METADATA.txt b/format/packfile/ingest/testdata/fixtures/sha256/METADATA.txt index 8a5ea0a2..8a5ea0a2 100644 --- a/packfile/ingest/testdata/fixtures/sha256/METADATA.txt +++ b/format/packfile/ingest/testdata/fixtures/sha256/METADATA.txt diff --git a/packfile/ingest/testdata/fixtures/sha256/base.pack b/format/packfile/ingest/testdata/fixtures/sha256/base.pack Binary files differindex 52ceef74..52ceef74 100644 --- a/packfile/ingest/testdata/fixtures/sha256/base.pack +++ b/format/packfile/ingest/testdata/fixtures/sha256/base.pack diff --git a/packfile/ingest/testdata/fixtures/sha256/nonthin.pack b/format/packfile/ingest/testdata/fixtures/sha256/nonthin.pack Binary files differindex 50db05d0..50db05d0 100644 --- a/packfile/ingest/testdata/fixtures/sha256/nonthin.pack +++ b/format/packfile/ingest/testdata/fixtures/sha256/nonthin.pack diff --git a/packfile/ingest/testdata/fixtures/sha256/thin.pack b/format/packfile/ingest/testdata/fixtures/sha256/thin.pack Binary files differindex b331b915..b331b915 100644 --- a/packfile/ingest/testdata/fixtures/sha256/thin.pack +++ b/format/packfile/ingest/testdata/fixtures/sha256/thin.pack diff --git a/packfile/ingest/thin_append.go b/format/packfile/ingest/thin_append.go index 779d477f..779d477f 100644 --- a/packfile/ingest/thin_append.go +++ b/format/packfile/ingest/thin_append.go diff --git a/packfile/ingest/thin_fix.go b/format/packfile/ingest/thin_fix.go index 83e5572a..83e5572a 100644 --- a/packfile/ingest/thin_fix.go +++ b/format/packfile/ingest/thin_fix.go diff --git a/packfile/ingest/thin_unresolved.go b/format/packfile/ingest/thin_unresolved.go index 757cc0e2..757cc0e2 100644 --- a/packfile/ingest/thin_unresolved.go +++ b/format/packfile/ingest/thin_unresolved.go diff --git a/packfile/ingest/trailer.go b/format/packfile/ingest/trailer.go index 7a26a8f2..7a26a8f2 100644 --- a/packfile/ingest/trailer.go +++ b/format/packfile/ingest/trailer.go diff --git a/packfile/ingest/use.go b/format/packfile/ingest/use.go index 97f8757a..97f8757a 100644 --- a/packfile/ingest/use.go +++ b/format/packfile/ingest/use.go diff --git a/packfile/object_type.go b/format/packfile/object_type.go index 8382baa9..8382baa9 100644 --- a/packfile/object_type.go +++ b/format/packfile/object_type.go diff --git a/packfile/ofs.go b/format/packfile/ofs.go index 4992a506..4992a506 100644 --- a/packfile/ofs.go +++ b/format/packfile/ofs.go diff --git a/internal/testgit/repo_open_commit_graph.go b/internal/testgit/repo_open_commit_graph.go index 6c0fee4a..4db7261b 100644 --- a/internal/testgit/repo_open_commit_graph.go +++ b/internal/testgit/repo_open_commit_graph.go @@ -3,7 +3,7 @@ package testgit import ( "testing" - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" ) // OpenCommitGraph opens the repository commit-graph and registers cleanup on diff --git a/network/receivepack/service/ingest_quarantine.go b/network/receivepack/service/ingest_quarantine.go index 8e3e2455..6121ad6d 100644 --- a/network/receivepack/service/ingest_quarantine.go +++ b/network/receivepack/service/ingest_quarantine.go @@ -4,7 +4,7 @@ import ( "os" "codeberg.org/lindenii/furgit/internal/utils" - "codeberg.org/lindenii/furgit/packfile/ingest" + "codeberg.org/lindenii/furgit/format/packfile/ingest" ) func (service *Service) ingestQuarantine( diff --git a/network/receivepack/service/result.go b/network/receivepack/service/result.go index 17fc0b6b..c5ff3812 100644 --- a/network/receivepack/service/result.go +++ b/network/receivepack/service/result.go @@ -1,7 +1,7 @@ package service import ( - "codeberg.org/lindenii/furgit/packfile/ingest" + "codeberg.org/lindenii/furgit/format/packfile/ingest" ) // Result is one receive-pack execution result. diff --git a/object/storer/packed/delta_build_chain.go b/object/storer/packed/delta_build_chain.go index c348e4d5..553f96f6 100644 --- a/object/storer/packed/delta_build_chain.go +++ b/object/storer/packed/delta_build_chain.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // deltaBuildChain walks one object's chain and builds a reconstruction chain. diff --git a/object/storer/packed/delta_resolve_chain.go b/object/storer/packed/delta_resolve_chain.go index 0c71b628..92df694e 100644 --- a/object/storer/packed/delta_resolve_chain.go +++ b/object/storer/packed/delta_resolve_chain.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - deltaapply "codeberg.org/lindenii/furgit/packfile/delta/apply" + deltaapply "codeberg.org/lindenii/furgit/format/packfile/delta/apply" ) // deltaResolveChain resolves one object chain into content bytes. diff --git a/object/storer/packed/delta_resolve_chain_start.go b/object/storer/packed/delta_resolve_chain_start.go index 53050134..fa3bce98 100644 --- a/object/storer/packed/delta_resolve_chain_start.go +++ b/object/storer/packed/delta_resolve_chain_start.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // deltaResolveChainStart finds the nearest cached chain node or inflates the diff --git a/object/storer/packed/delta_resolve_content.go b/object/storer/packed/delta_resolve_content.go index 06fc4226..9907f4c8 100644 --- a/object/storer/packed/delta_resolve_content.go +++ b/object/storer/packed/delta_resolve_content.go @@ -2,7 +2,7 @@ package packed import ( objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // deltaResolveContent resolves one object's content bytes from its pack location. diff --git a/object/storer/packed/delta_size.go b/object/storer/packed/delta_size.go index 6896c939..e5ba3bb7 100644 --- a/object/storer/packed/delta_size.go +++ b/object/storer/packed/delta_size.go @@ -3,7 +3,7 @@ package packed import ( "bufio" - deltaapply "codeberg.org/lindenii/furgit/packfile/delta/apply" + deltaapply "codeberg.org/lindenii/furgit/format/packfile/delta/apply" ) // deltaDeclaredSizeAt returns the resolved object size declared by one delta diff --git a/object/storer/packed/entry_parse.go b/object/storer/packed/entry_parse.go index bbbbc469..95759d0e 100644 --- a/object/storer/packed/entry_parse.go +++ b/object/storer/packed/entry_parse.go @@ -6,7 +6,7 @@ import ( "codeberg.org/lindenii/furgit/internal/intconv" objectid "codeberg.org/lindenii/furgit/object/id" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // entryMeta describes one parsed pack entry header. diff --git a/object/storer/packed/pack.go b/object/storer/packed/pack.go index c8135d52..363fdc13 100644 --- a/object/storer/packed/pack.go +++ b/object/storer/packed/pack.go @@ -7,7 +7,7 @@ import ( "syscall" "codeberg.org/lindenii/furgit/internal/intconv" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // packFile stores one mapped and validated .pack file. diff --git a/object/storer/packed/read_header_resolve.go b/object/storer/packed/read_header_resolve.go index 285387fa..614eacf8 100644 --- a/object/storer/packed/read_header_resolve.go +++ b/object/storer/packed/read_header_resolve.go @@ -4,7 +4,7 @@ import ( "fmt" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // resolveHeaderAt resolves one object's canonical type and declared content size. diff --git a/object/storer/packed/read_reader.go b/object/storer/packed/read_reader.go index 324ee033..01f38fcf 100644 --- a/object/storer/packed/read_reader.go +++ b/object/storer/packed/read_reader.go @@ -9,7 +9,7 @@ import ( objectheader "codeberg.org/lindenii/furgit/object/header" objectid "codeberg.org/lindenii/furgit/object/id" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // ReadReaderContent reads an object's type, declared content size, and content diff --git a/object/storer/packed/read_size.go b/object/storer/packed/read_size.go index 9d6c8e7d..18eec288 100644 --- a/object/storer/packed/read_size.go +++ b/object/storer/packed/read_size.go @@ -5,7 +5,7 @@ import ( objectid "codeberg.org/lindenii/furgit/object/id" objecttype "codeberg.org/lindenii/furgit/object/type" - packfmt "codeberg.org/lindenii/furgit/packfile" + packfmt "codeberg.org/lindenii/furgit/format/packfile" ) // ReadSize reads an object's declared content size. diff --git a/packfile/doc.go b/packfile/doc.go deleted file mode 100644 index d656e256..00000000 --- a/packfile/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package packfile provides Git packfile format parsing primitives. -package packfile diff --git a/reachability/reachability.go b/reachability/reachability.go index 77a844a7..31947525 100644 --- a/reachability/reachability.go +++ b/reachability/reachability.go @@ -2,7 +2,7 @@ package reachability import ( - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectstorer "codeberg.org/lindenii/furgit/object/storer" ) diff --git a/reachability/walk_expand_commits_graph.go b/reachability/walk_expand_commits_graph.go index 447879d8..863906f9 100644 --- a/reachability/walk_expand_commits_graph.go +++ b/reachability/walk_expand_commits_graph.go @@ -3,7 +3,7 @@ package reachability import ( "errors" - commitgraphread "codeberg.org/lindenii/furgit/commitgraph/read" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectid "codeberg.org/lindenii/furgit/object/id" objecttype "codeberg.org/lindenii/furgit/object/type" ) |
