aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/receivepack9418/errpkt.go2
-rw-r--r--cmd/receivepack9418/gitproto.go2
-rw-r--r--protocol/pktline/append.go (renamed from format/pktline/append.go)0
-rw-r--r--protocol/pktline/append_data_preserves_dst_on_error_test.go (renamed from format/pktline/append_data_preserves_dst_on_error_test.go)2
-rw-r--r--protocol/pktline/append_helpers_test.go (renamed from format/pktline/append_helpers_test.go)2
-rw-r--r--protocol/pktline/chunk_writer.go (renamed from format/pktline/chunk_writer.go)0
-rw-r--r--protocol/pktline/chunk_writer_write_and_read_from_test.go (renamed from format/pktline/chunk_writer_write_and_read_from_test.go)2
-rw-r--r--protocol/pktline/constants.go (renamed from format/pktline/constants.go)0
-rw-r--r--protocol/pktline/decoder.go (renamed from format/pktline/decoder.go)0
-rw-r--r--protocol/pktline/decoder_data_control_and_0004_test.go (renamed from format/pktline/decoder_data_control_and_0004_test.go)2
-rw-r--r--protocol/pktline/decoder_invalid_0003_test.go (renamed from format/pktline/decoder_invalid_0003_test.go)2
-rw-r--r--protocol/pktline/decoder_peek_test.go (renamed from format/pktline/decoder_peek_test.go)2
-rw-r--r--protocol/pktline/decoder_rejects_over_maximum_length_test.go (renamed from format/pktline/decoder_rejects_over_maximum_length_test.go)2
-rw-r--r--protocol/pktline/decoder_resync_after_over_max_data_test.go (renamed from format/pktline/decoder_resync_after_over_max_data_test.go)2
-rw-r--r--protocol/pktline/decoder_resync_after_over_wire_max_test.go (renamed from format/pktline/decoder_resync_after_over_wire_max_test.go)2
-rw-r--r--protocol/pktline/decoder_unexpected_eof_test.go (renamed from format/pktline/decoder_unexpected_eof_test.go)2
-rw-r--r--protocol/pktline/doc.go (renamed from format/pktline/doc.go)0
-rw-r--r--protocol/pktline/encode_length_header_test.go (renamed from format/pktline/encode_length_header_test.go)2
-rw-r--r--protocol/pktline/encoder.go (renamed from format/pktline/encoder.go)0
-rw-r--r--protocol/pktline/encoder_buffered_flush_and_f_flush_test.go (renamed from format/pktline/encoder_buffered_flush_and_f_flush_test.go)2
-rw-r--r--protocol/pktline/encoder_buffered_flush_behavior_test.go (renamed from format/pktline/encoder_buffered_flush_behavior_test.go)2
-rw-r--r--protocol/pktline/encoder_set_max_data_cannot_exceed_wire_limit_test.go (renamed from format/pktline/encoder_set_max_data_cannot_exceed_wire_limit_test.go)2
-rw-r--r--protocol/pktline/encoder_writes_frames_test.go (renamed from format/pktline/encoder_writes_frames_test.go)2
-rw-r--r--protocol/pktline/errors.go (renamed from format/pktline/errors.go)0
-rw-r--r--protocol/pktline/frame.go (renamed from format/pktline/frame.go)0
-rw-r--r--protocol/pktline/header.go (renamed from format/pktline/header.go)0
-rw-r--r--protocol/pktline/parse_length_header_test.go (renamed from format/pktline/parse_length_header_test.go)2
-rw-r--r--protocol/pktline/type.go (renamed from format/pktline/type.go)0
-rw-r--r--protocol/sideband64k/append.go (renamed from format/sideband64k/append.go)2
-rw-r--r--protocol/sideband64k/append_helpers_test.go (renamed from format/sideband64k/append_helpers_test.go)2
-rw-r--r--protocol/sideband64k/append_preserves_dst_on_error_test.go (renamed from format/sideband64k/append_preserves_dst_on_error_test.go)2
-rw-r--r--protocol/sideband64k/band.go (renamed from format/sideband64k/band.go)0
-rw-r--r--protocol/sideband64k/chunk_writer.go (renamed from format/sideband64k/chunk_writer.go)0
-rw-r--r--protocol/sideband64k/chunk_writer_write_and_read_from_test.go (renamed from format/sideband64k/chunk_writer_write_and_read_from_test.go)2
-rw-r--r--protocol/sideband64k/constants.go (renamed from format/sideband64k/constants.go)2
-rw-r--r--protocol/sideband64k/decoder.go (renamed from format/sideband64k/decoder.go)2
-rw-r--r--protocol/sideband64k/decoder_data_control_and_keepalive_test.go (renamed from format/sideband64k/decoder_data_control_and_keepalive_test.go)2
-rw-r--r--protocol/sideband64k/decoder_invalid_band_test.go (renamed from format/sideband64k/decoder_invalid_band_test.go)2
-rw-r--r--protocol/sideband64k/decoder_invalid_empty_payload_test.go (renamed from format/sideband64k/decoder_invalid_empty_payload_test.go)2
-rw-r--r--protocol/sideband64k/decoder_malformed_pktline_test.go (renamed from format/sideband64k/decoder_malformed_pktline_test.go)4
-rw-r--r--protocol/sideband64k/decoder_partial_read_test.go (renamed from format/sideband64k/decoder_partial_read_test.go)2
-rw-r--r--protocol/sideband64k/decoder_peek_test.go (renamed from format/sideband64k/decoder_peek_test.go)2
-rw-r--r--protocol/sideband64k/decoder_resync_after_over_max_data_test.go (renamed from format/sideband64k/decoder_resync_after_over_max_data_test.go)2
-rw-r--r--protocol/sideband64k/decoder_resync_after_over_wire_max_test.go (renamed from format/sideband64k/decoder_resync_after_over_wire_max_test.go)4
-rw-r--r--protocol/sideband64k/decoder_unexpected_eof_test.go (renamed from format/sideband64k/decoder_unexpected_eof_test.go)2
-rw-r--r--protocol/sideband64k/doc.go (renamed from format/sideband64k/doc.go)0
-rw-r--r--protocol/sideband64k/encoder.go (renamed from format/sideband64k/encoder.go)2
-rw-r--r--protocol/sideband64k/encoder_buffered_flush_behavior_test.go (renamed from format/sideband64k/encoder_buffered_flush_behavior_test.go)2
-rw-r--r--protocol/sideband64k/encoder_partial_write_test.go (renamed from format/sideband64k/encoder_partial_write_test.go)2
-rw-r--r--protocol/sideband64k/encoder_set_max_data_cannot_exceed_wire_limit_test.go (renamed from format/sideband64k/encoder_set_max_data_cannot_exceed_wire_limit_test.go)2
-rw-r--r--protocol/sideband64k/encoder_writes_frames_test.go (renamed from format/sideband64k/encoder_writes_frames_test.go)2
-rw-r--r--protocol/sideband64k/errors.go (renamed from format/sideband64k/errors.go)0
-rw-r--r--protocol/sideband64k/frame.go (renamed from format/sideband64k/frame.go)0
-rw-r--r--protocol/sideband64k/frame_type.go (renamed from format/sideband64k/frame_type.go)0
-rw-r--r--protocol/sideband64k/helpers_test.go (renamed from format/sideband64k/helpers_test.go)0
-rw-r--r--protocol/v0v1/server/frame.go2
-rw-r--r--protocol/v0v1/server/receivepack/parse_test.go2
-rw-r--r--protocol/v0v1/server/receivepack/report_status.go2
-rw-r--r--protocol/v0v1/server/receivepack/report_status_test.go4
-rw-r--r--protocol/v0v1/server/session.go4
-rw-r--r--receivepack/int_test.go4
-rw-r--r--receivepack/receivepack.go2
62 files changed, 50 insertions, 50 deletions
diff --git a/cmd/receivepack9418/errpkt.go b/cmd/receivepack9418/errpkt.go
index 379c3cb2..1a5e4837 100644
--- a/cmd/receivepack9418/errpkt.go
+++ b/cmd/receivepack9418/errpkt.go
@@ -3,7 +3,7 @@ package main
import (
"io"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func writeErrPkt(w io.Writer, message string) {
diff --git a/cmd/receivepack9418/gitproto.go b/cmd/receivepack9418/gitproto.go
index 609f2c12..d0d6c707 100644
--- a/cmd/receivepack9418/gitproto.go
+++ b/cmd/receivepack9418/gitproto.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func readGitProtoRequest(r io.Reader) (gitProtoRequest, error) {
diff --git a/format/pktline/append.go b/protocol/pktline/append.go
index 9425e58e..9425e58e 100644
--- a/format/pktline/append.go
+++ b/protocol/pktline/append.go
diff --git a/format/pktline/append_data_preserves_dst_on_error_test.go b/protocol/pktline/append_data_preserves_dst_on_error_test.go
index 6645c20d..2888be16 100644
--- a/format/pktline/append_data_preserves_dst_on_error_test.go
+++ b/protocol/pktline/append_data_preserves_dst_on_error_test.go
@@ -5,7 +5,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestAppendDataPreservesDstOnError(t *testing.T) {
diff --git a/format/pktline/append_helpers_test.go b/protocol/pktline/append_helpers_test.go
index db7ca034..ae5f4748 100644
--- a/format/pktline/append_helpers_test.go
+++ b/protocol/pktline/append_helpers_test.go
@@ -3,7 +3,7 @@ package pktline_test
import (
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestAppendHelpers(t *testing.T) {
diff --git a/format/pktline/chunk_writer.go b/protocol/pktline/chunk_writer.go
index b258ff20..b258ff20 100644
--- a/format/pktline/chunk_writer.go
+++ b/protocol/pktline/chunk_writer.go
diff --git a/format/pktline/chunk_writer_write_and_read_from_test.go b/protocol/pktline/chunk_writer_write_and_read_from_test.go
index 8a019f7a..f34aa754 100644
--- a/format/pktline/chunk_writer_write_and_read_from_test.go
+++ b/protocol/pktline/chunk_writer_write_and_read_from_test.go
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestChunkWriterWriteAndReadFrom(t *testing.T) {
diff --git a/format/pktline/constants.go b/protocol/pktline/constants.go
index 811eb3c6..811eb3c6 100644
--- a/format/pktline/constants.go
+++ b/protocol/pktline/constants.go
diff --git a/format/pktline/decoder.go b/protocol/pktline/decoder.go
index 898d8ad6..898d8ad6 100644
--- a/format/pktline/decoder.go
+++ b/protocol/pktline/decoder.go
diff --git a/format/pktline/decoder_data_control_and_0004_test.go b/protocol/pktline/decoder_data_control_and_0004_test.go
index 9dea8427..727e1063 100644
--- a/format/pktline/decoder_data_control_and_0004_test.go
+++ b/protocol/pktline/decoder_data_control_and_0004_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderDataControlAnd0004(t *testing.T) {
diff --git a/format/pktline/decoder_invalid_0003_test.go b/protocol/pktline/decoder_invalid_0003_test.go
index 3a93633c..9414d715 100644
--- a/format/pktline/decoder_invalid_0003_test.go
+++ b/protocol/pktline/decoder_invalid_0003_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderInvalid0003(t *testing.T) {
diff --git a/format/pktline/decoder_peek_test.go b/protocol/pktline/decoder_peek_test.go
index 8ea4e8b4..4b2fe2d9 100644
--- a/format/pktline/decoder_peek_test.go
+++ b/protocol/pktline/decoder_peek_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderPeek(t *testing.T) {
diff --git a/format/pktline/decoder_rejects_over_maximum_length_test.go b/protocol/pktline/decoder_rejects_over_maximum_length_test.go
index 8d897a55..67dd5053 100644
--- a/format/pktline/decoder_rejects_over_maximum_length_test.go
+++ b/protocol/pktline/decoder_rejects_over_maximum_length_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderRejectsOverMaximumLength(t *testing.T) {
diff --git a/format/pktline/decoder_resync_after_over_max_data_test.go b/protocol/pktline/decoder_resync_after_over_max_data_test.go
index 4e170795..798ca91f 100644
--- a/format/pktline/decoder_resync_after_over_max_data_test.go
+++ b/protocol/pktline/decoder_resync_after_over_max_data_test.go
@@ -6,7 +6,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderResyncAfterOverMaxData(t *testing.T) {
diff --git a/format/pktline/decoder_resync_after_over_wire_max_test.go b/protocol/pktline/decoder_resync_after_over_wire_max_test.go
index 29a3440f..3ba98d62 100644
--- a/format/pktline/decoder_resync_after_over_wire_max_test.go
+++ b/protocol/pktline/decoder_resync_after_over_wire_max_test.go
@@ -5,7 +5,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderResyncAfterOverWireMax(t *testing.T) {
diff --git a/format/pktline/decoder_unexpected_eof_test.go b/protocol/pktline/decoder_unexpected_eof_test.go
index ffc0fb45..b86b5540 100644
--- a/format/pktline/decoder_unexpected_eof_test.go
+++ b/protocol/pktline/decoder_unexpected_eof_test.go
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestDecoderUnexpectedEOF(t *testing.T) {
diff --git a/format/pktline/doc.go b/protocol/pktline/doc.go
index 3f7cca89..3f7cca89 100644
--- a/format/pktline/doc.go
+++ b/protocol/pktline/doc.go
diff --git a/format/pktline/encode_length_header_test.go b/protocol/pktline/encode_length_header_test.go
index ec9a9c9b..5ad76daf 100644
--- a/format/pktline/encode_length_header_test.go
+++ b/protocol/pktline/encode_length_header_test.go
@@ -4,7 +4,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestEncodeLengthHeader(t *testing.T) {
diff --git a/format/pktline/encoder.go b/protocol/pktline/encoder.go
index b4c6dbf0..b4c6dbf0 100644
--- a/format/pktline/encoder.go
+++ b/protocol/pktline/encoder.go
diff --git a/format/pktline/encoder_buffered_flush_and_f_flush_test.go b/protocol/pktline/encoder_buffered_flush_and_f_flush_test.go
index 1e5e2a88..395d7310 100644
--- a/format/pktline/encoder_buffered_flush_and_f_flush_test.go
+++ b/protocol/pktline/encoder_buffered_flush_and_f_flush_test.go
@@ -5,7 +5,7 @@ import (
"bytes"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestEncoderBufferedFlushAndFFlush(t *testing.T) {
diff --git a/format/pktline/encoder_buffered_flush_behavior_test.go b/protocol/pktline/encoder_buffered_flush_behavior_test.go
index dc21eba0..89ae5fcf 100644
--- a/format/pktline/encoder_buffered_flush_behavior_test.go
+++ b/protocol/pktline/encoder_buffered_flush_behavior_test.go
@@ -5,7 +5,7 @@ import (
"bytes"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestEncoderBufferedFlushBehavior(t *testing.T) {
diff --git a/format/pktline/encoder_set_max_data_cannot_exceed_wire_limit_test.go b/protocol/pktline/encoder_set_max_data_cannot_exceed_wire_limit_test.go
index 696f524d..c4c4f5c9 100644
--- a/format/pktline/encoder_set_max_data_cannot_exceed_wire_limit_test.go
+++ b/protocol/pktline/encoder_set_max_data_cannot_exceed_wire_limit_test.go
@@ -6,7 +6,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestEncoderSetMaxDataCannotExceedWireLimit(t *testing.T) {
diff --git a/format/pktline/encoder_writes_frames_test.go b/protocol/pktline/encoder_writes_frames_test.go
index c06047e9..2a595730 100644
--- a/format/pktline/encoder_writes_frames_test.go
+++ b/protocol/pktline/encoder_writes_frames_test.go
@@ -5,7 +5,7 @@ import (
"bytes"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestEncoderWritesFrames(t *testing.T) {
diff --git a/format/pktline/errors.go b/protocol/pktline/errors.go
index 866ff467..866ff467 100644
--- a/format/pktline/errors.go
+++ b/protocol/pktline/errors.go
diff --git a/format/pktline/frame.go b/protocol/pktline/frame.go
index a1cf708c..a1cf708c 100644
--- a/format/pktline/frame.go
+++ b/protocol/pktline/frame.go
diff --git a/format/pktline/header.go b/protocol/pktline/header.go
index 41e50e04..41e50e04 100644
--- a/format/pktline/header.go
+++ b/protocol/pktline/header.go
diff --git a/format/pktline/parse_length_header_test.go b/protocol/pktline/parse_length_header_test.go
index dac3fae9..4bc743dd 100644
--- a/format/pktline/parse_length_header_test.go
+++ b/protocol/pktline/parse_length_header_test.go
@@ -4,7 +4,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
func TestParseLengthHeader(t *testing.T) {
diff --git a/format/pktline/type.go b/protocol/pktline/type.go
index 641d1c6c..641d1c6c 100644
--- a/format/pktline/type.go
+++ b/protocol/pktline/type.go
diff --git a/format/sideband64k/append.go b/protocol/sideband64k/append.go
index 59dbdf43..4da419f3 100644
--- a/format/sideband64k/append.go
+++ b/protocol/sideband64k/append.go
@@ -3,7 +3,7 @@ package sideband64k
import (
"fmt"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
// AppendBand appends one side-band-64k data frame to dst.
diff --git a/format/sideband64k/append_helpers_test.go b/protocol/sideband64k/append_helpers_test.go
index 17cd7493..5b64856a 100644
--- a/format/sideband64k/append_helpers_test.go
+++ b/protocol/sideband64k/append_helpers_test.go
@@ -3,7 +3,7 @@ package sideband64k_test
import (
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestAppendHelpers(t *testing.T) {
diff --git a/format/sideband64k/append_preserves_dst_on_error_test.go b/protocol/sideband64k/append_preserves_dst_on_error_test.go
index a327326d..7c86a8b7 100644
--- a/format/sideband64k/append_preserves_dst_on_error_test.go
+++ b/protocol/sideband64k/append_preserves_dst_on_error_test.go
@@ -5,7 +5,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestAppendBandPreservesDstOnError(t *testing.T) {
diff --git a/format/sideband64k/band.go b/protocol/sideband64k/band.go
index 73c61fd8..73c61fd8 100644
--- a/format/sideband64k/band.go
+++ b/protocol/sideband64k/band.go
diff --git a/format/sideband64k/chunk_writer.go b/protocol/sideband64k/chunk_writer.go
index f95f75d8..f95f75d8 100644
--- a/format/sideband64k/chunk_writer.go
+++ b/protocol/sideband64k/chunk_writer.go
diff --git a/format/sideband64k/chunk_writer_write_and_read_from_test.go b/protocol/sideband64k/chunk_writer_write_and_read_from_test.go
index 8a736107..ab954d57 100644
--- a/format/sideband64k/chunk_writer_write_and_read_from_test.go
+++ b/protocol/sideband64k/chunk_writer_write_and_read_from_test.go
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestChunkWriterWriteAndReadFrom(t *testing.T) {
diff --git a/format/sideband64k/constants.go b/protocol/sideband64k/constants.go
index 40077761..f71423ee 100644
--- a/format/sideband64k/constants.go
+++ b/protocol/sideband64k/constants.go
@@ -1,6 +1,6 @@
package sideband64k
-import "codeberg.org/lindenii/furgit/format/pktline"
+import "codeberg.org/lindenii/furgit/protocol/pktline"
const (
// PacketMax is the maximum on-wire pkt-line size used by side-band-64k.
diff --git a/format/sideband64k/decoder.go b/protocol/sideband64k/decoder.go
index b54e7d39..57541567 100644
--- a/format/sideband64k/decoder.go
+++ b/protocol/sideband64k/decoder.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
// ReadOptions controls sideband decoding behavior.
diff --git a/format/sideband64k/decoder_data_control_and_keepalive_test.go b/protocol/sideband64k/decoder_data_control_and_keepalive_test.go
index b79a45f7..d829b930 100644
--- a/format/sideband64k/decoder_data_control_and_keepalive_test.go
+++ b/protocol/sideband64k/decoder_data_control_and_keepalive_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderDataControlAndKeepalive(t *testing.T) {
diff --git a/format/sideband64k/decoder_invalid_band_test.go b/protocol/sideband64k/decoder_invalid_band_test.go
index 12c53891..2b28a0ef 100644
--- a/format/sideband64k/decoder_invalid_band_test.go
+++ b/protocol/sideband64k/decoder_invalid_band_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderInvalidBand(t *testing.T) {
diff --git a/format/sideband64k/decoder_invalid_empty_payload_test.go b/protocol/sideband64k/decoder_invalid_empty_payload_test.go
index eb52ad6a..86481166 100644
--- a/format/sideband64k/decoder_invalid_empty_payload_test.go
+++ b/protocol/sideband64k/decoder_invalid_empty_payload_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderInvalidEmptyPayload(t *testing.T) {
diff --git a/format/sideband64k/decoder_malformed_pktline_test.go b/protocol/sideband64k/decoder_malformed_pktline_test.go
index 54ea6ffb..9d4030f3 100644
--- a/format/sideband64k/decoder_malformed_pktline_test.go
+++ b/protocol/sideband64k/decoder_malformed_pktline_test.go
@@ -5,8 +5,8 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderInvalid0003(t *testing.T) {
diff --git a/format/sideband64k/decoder_partial_read_test.go b/protocol/sideband64k/decoder_partial_read_test.go
index d5b2f672..730363d7 100644
--- a/format/sideband64k/decoder_partial_read_test.go
+++ b/protocol/sideband64k/decoder_partial_read_test.go
@@ -3,7 +3,7 @@ package sideband64k_test
import (
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderHandlesPartialReads(t *testing.T) {
diff --git a/format/sideband64k/decoder_peek_test.go b/protocol/sideband64k/decoder_peek_test.go
index 1628ca41..b0b43fa1 100644
--- a/format/sideband64k/decoder_peek_test.go
+++ b/protocol/sideband64k/decoder_peek_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderPeek(t *testing.T) {
diff --git a/format/sideband64k/decoder_resync_after_over_max_data_test.go b/protocol/sideband64k/decoder_resync_after_over_max_data_test.go
index 923195c1..dea396d1 100644
--- a/format/sideband64k/decoder_resync_after_over_max_data_test.go
+++ b/protocol/sideband64k/decoder_resync_after_over_max_data_test.go
@@ -6,7 +6,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderResyncAfterOverMaxData(t *testing.T) {
diff --git a/format/sideband64k/decoder_resync_after_over_wire_max_test.go b/protocol/sideband64k/decoder_resync_after_over_wire_max_test.go
index c790cd6f..f646c6ad 100644
--- a/format/sideband64k/decoder_resync_after_over_wire_max_test.go
+++ b/protocol/sideband64k/decoder_resync_after_over_wire_max_test.go
@@ -5,8 +5,8 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderResyncAfterOverWireMax(t *testing.T) {
diff --git a/format/sideband64k/decoder_unexpected_eof_test.go b/protocol/sideband64k/decoder_unexpected_eof_test.go
index 40794471..74d5a6fb 100644
--- a/format/sideband64k/decoder_unexpected_eof_test.go
+++ b/protocol/sideband64k/decoder_unexpected_eof_test.go
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestDecoderUnexpectedEOF(t *testing.T) {
diff --git a/format/sideband64k/doc.go b/protocol/sideband64k/doc.go
index 55c33650..55c33650 100644
--- a/format/sideband64k/doc.go
+++ b/protocol/sideband64k/doc.go
diff --git a/format/sideband64k/encoder.go b/protocol/sideband64k/encoder.go
index 4205d461..75fb1339 100644
--- a/format/sideband64k/encoder.go
+++ b/protocol/sideband64k/encoder.go
@@ -3,7 +3,7 @@ package sideband64k
import (
"fmt"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
// Encoder writes side-band-64k frames to a flush-capable output transport.
diff --git a/format/sideband64k/encoder_buffered_flush_behavior_test.go b/protocol/sideband64k/encoder_buffered_flush_behavior_test.go
index 5c8b358f..723a55ec 100644
--- a/format/sideband64k/encoder_buffered_flush_behavior_test.go
+++ b/protocol/sideband64k/encoder_buffered_flush_behavior_test.go
@@ -5,7 +5,7 @@ import (
"bytes"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestEncoderBufferedFlushBehavior(t *testing.T) {
diff --git a/format/sideband64k/encoder_partial_write_test.go b/protocol/sideband64k/encoder_partial_write_test.go
index 3d4f8066..3cec9324 100644
--- a/format/sideband64k/encoder_partial_write_test.go
+++ b/protocol/sideband64k/encoder_partial_write_test.go
@@ -5,7 +5,7 @@ import (
"io"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestEncoderHandlesPartialWrites(t *testing.T) {
diff --git a/format/sideband64k/encoder_set_max_data_cannot_exceed_wire_limit_test.go b/protocol/sideband64k/encoder_set_max_data_cannot_exceed_wire_limit_test.go
index aa0adcf0..2edb609a 100644
--- a/format/sideband64k/encoder_set_max_data_cannot_exceed_wire_limit_test.go
+++ b/protocol/sideband64k/encoder_set_max_data_cannot_exceed_wire_limit_test.go
@@ -5,7 +5,7 @@ import (
"errors"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestEncoderSetMaxDataCannotExceedWireLimit(t *testing.T) {
diff --git a/format/sideband64k/encoder_writes_frames_test.go b/protocol/sideband64k/encoder_writes_frames_test.go
index 8cfd4a89..19fff437 100644
--- a/format/sideband64k/encoder_writes_frames_test.go
+++ b/protocol/sideband64k/encoder_writes_frames_test.go
@@ -5,7 +5,7 @@ import (
"bytes"
"testing"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
)
func TestEncoderWritesFrames(t *testing.T) {
diff --git a/format/sideband64k/errors.go b/protocol/sideband64k/errors.go
index 44e7c165..44e7c165 100644
--- a/format/sideband64k/errors.go
+++ b/protocol/sideband64k/errors.go
diff --git a/format/sideband64k/frame.go b/protocol/sideband64k/frame.go
index 1335a8e3..1335a8e3 100644
--- a/format/sideband64k/frame.go
+++ b/protocol/sideband64k/frame.go
diff --git a/format/sideband64k/frame_type.go b/protocol/sideband64k/frame_type.go
index 052d8b10..052d8b10 100644
--- a/format/sideband64k/frame_type.go
+++ b/protocol/sideband64k/frame_type.go
diff --git a/format/sideband64k/helpers_test.go b/protocol/sideband64k/helpers_test.go
index f9b2608f..f9b2608f 100644
--- a/format/sideband64k/helpers_test.go
+++ b/protocol/sideband64k/helpers_test.go
diff --git a/protocol/v0v1/server/frame.go b/protocol/v0v1/server/frame.go
index 383284d7..3cccba08 100644
--- a/protocol/v0v1/server/frame.go
+++ b/protocol/v0v1/server/frame.go
@@ -1,6 +1,6 @@
package server
-import "codeberg.org/lindenii/furgit/format/pktline"
+import "codeberg.org/lindenii/furgit/protocol/pktline"
// FrameType identifies one low-level v0/v1 server pkt-line frame type.
type FrameType = pktline.PacketType
diff --git a/protocol/v0v1/server/receivepack/parse_test.go b/protocol/v0v1/server/receivepack/parse_test.go
index f304ac44..40c67c98 100644
--- a/protocol/v0v1/server/receivepack/parse_test.go
+++ b/protocol/v0v1/server/receivepack/parse_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
"codeberg.org/lindenii/furgit/internal/testgit"
"codeberg.org/lindenii/furgit/objectid"
common "codeberg.org/lindenii/furgit/protocol/v0v1/server"
diff --git a/protocol/v0v1/server/receivepack/report_status.go b/protocol/v0v1/server/receivepack/report_status.go
index 6649ee88..f6ac4985 100644
--- a/protocol/v0v1/server/receivepack/report_status.go
+++ b/protocol/v0v1/server/receivepack/report_status.go
@@ -3,7 +3,7 @@ package receivepack
import (
"fmt"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
)
// WriteReportStatus writes one classic report-status response.
diff --git a/protocol/v0v1/server/receivepack/report_status_test.go b/protocol/v0v1/server/receivepack/report_status_test.go
index 48420fc8..a81d45d0 100644
--- a/protocol/v0v1/server/receivepack/report_status_test.go
+++ b/protocol/v0v1/server/receivepack/report_status_test.go
@@ -6,8 +6,8 @@ import (
"strings"
"testing"
- "codeberg.org/lindenii/furgit/format/pktline"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
"codeberg.org/lindenii/furgit/internal/testgit"
"codeberg.org/lindenii/furgit/objectid"
common "codeberg.org/lindenii/furgit/protocol/v0v1/server"
diff --git a/protocol/v0v1/server/session.go b/protocol/v0v1/server/session.go
index 7e107f53..d3267d10 100644
--- a/protocol/v0v1/server/session.go
+++ b/protocol/v0v1/server/session.go
@@ -3,8 +3,8 @@ package server
import (
"io"
- "codeberg.org/lindenii/furgit/format/pktline"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
"codeberg.org/lindenii/furgit/objectid"
)
diff --git a/receivepack/int_test.go b/receivepack/int_test.go
index b144c387..4db020a4 100644
--- a/receivepack/int_test.go
+++ b/receivepack/int_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"time"
- "codeberg.org/lindenii/furgit/format/pktline"
- "codeberg.org/lindenii/furgit/format/sideband64k"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
+ "codeberg.org/lindenii/furgit/protocol/sideband64k"
"codeberg.org/lindenii/furgit/internal/testgit"
"codeberg.org/lindenii/furgit/objectid"
receivepack "codeberg.org/lindenii/furgit/receivepack"
diff --git a/receivepack/receivepack.go b/receivepack/receivepack.go
index aeec9370..8103ad1f 100644
--- a/receivepack/receivepack.go
+++ b/receivepack/receivepack.go
@@ -4,7 +4,7 @@ import (
"context"
"io"
- "codeberg.org/lindenii/furgit/format/pktline"
+ "codeberg.org/lindenii/furgit/protocol/pktline"
common "codeberg.org/lindenii/furgit/protocol/v0v1/server"
protoreceive "codeberg.org/lindenii/furgit/protocol/v0v1/server/receivepack"
"codeberg.org/lindenii/furgit/receivepack/service"