shithub: furgit

Download patch

ref: fabf75c8123756db8b2a6013375396e0b8847bac
parent: 5b1a67514d984240240234d1e7d203b481a03f62
author: Runxi Yu <me@runxiyu.org>
date: Sun Feb 22 09:01:18 EST 2026

*: Fix the broken comments for overescaping that python script

--- a/objectstore/loose/read_reader.go
+++ b/objectstore/loose/read_reader.go
@@ -47,7 +47,7 @@
 	return file, zr, nil
 }
 
-// ReadReaderFull reads a full serialized object stream as "type size\\x00content".
+// ReadReaderFull reads a full serialized object stream as "type size\0content".
 // The caller must close the returned reader.
 func (store *Store) ReadReaderFull(id objectid.ObjectID) (io.ReadCloser, error) {
 	file, zr, err := store.openInflated(id)
--- a/objectstore/objectstore.go
+++ b/objectstore/objectstore.go
@@ -15,7 +15,7 @@
 
 // Store reads Git objects by object ID.
 type Store interface {
-	// ReadBytesFull reads a full serialized object as "type size\\x00content".
+	// ReadBytesFull reads a full serialized object as "type size\0content".
 	//
 	// In a valid repository, hashing this payload with the same algorithm yields
 	// the requested object ID. Readers should treat this as a repository
@@ -23,7 +23,7 @@
 	ReadBytesFull(id objectid.ObjectID) ([]byte, error)
 	// ReadBytesContent reads an object's type and content bytes.
 	ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error)
-	// ReadReaderFull reads a full serialized object stream as "type size\\x00content".
+	// ReadReaderFull reads a full serialized object stream as "type size\0content".
 	// Caller must close the returned reader.
 	ReadReaderFull(id objectid.ObjectID) (io.ReadCloser, error)
 	// ReadReaderContent reads an object's type, declared content length,
--- a/repository/read_stored_passthrough.go
+++ b/repository/read_stored_passthrough.go
@@ -17,7 +17,7 @@
 	return repo.objects.ReadSize(id)
 }
 
-// ReadStoredBytesFull reads a full serialized object as "type size\\x00content".
+// ReadStoredBytesFull reads a full serialized object as "type size\0content".
 func (repo *Repository) ReadStoredBytesFull(id objectid.ObjectID) ([]byte, error) {
 	return repo.objects.ReadBytesFull(id)
 }
--