···11package read
2233// Close releases all mapped commit-graph files.
44-//
55-// Labels: Close-UB.
64func (reader *Reader) Close() error {
75 var closeErr error
86
+2-1
furgit.go
···4040// - Close-Caller: the caller must close the returned value.
4141// - Close-No: the caller must not close the returned value directly.
4242// - Close-Idem: repeated Close calls are safe.
4343-// - Close-UB: repeated Close calls are undefined behavior.
4343+//
4444+// Unless Close-Idem is specified, repeated Close calls are undefined behavior.
4445//
4546// Unless a doc comment explicitly states otherwise, these labels describe the
4647// API contract only. They do not imply any specific implementation strategy.
-2
object/store/loose/write_writer_finalize.go
···99)
10101111// Close flushes and closes the underlying zlib stream and temp file.
1212-//
1313-// Repeated calls to Close are undefined behavior.
1412func (writer *streamWriter) Close() error {
1513 errZlib := writer.zw.Close()
1614 errSync := writer.file.Sync()
-2
object/store/reading.go
···5454 Refresh() error
55555656 // Close releases resources associated with the backend.
5757- //
5858- // Labels: Close-UB.
5957 Close() error
6058}
-2
ref/store/reading.go
···3434 // Close releases resources associated with the store.
3535 //
3636 // Transactions and batches borrowing the store are invalid after Close.
3737- //
3838- // Labels: Close-UB.
3937 Close() error
4038}