Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

*: Repeated calls to Close are UB by default

Runxi Yu 9bd37998 2bf092c8

+2 -9
-2
format/commitgraph/read/close.go
··· 1 1 package read 2 2 3 3 // Close releases all mapped commit-graph files. 4 - // 5 - // Labels: Close-UB. 6 4 func (reader *Reader) Close() error { 7 5 var closeErr error 8 6
+2 -1
furgit.go
··· 40 40 // - Close-Caller: the caller must close the returned value. 41 41 // - Close-No: the caller must not close the returned value directly. 42 42 // - Close-Idem: repeated Close calls are safe. 43 - // - Close-UB: repeated Close calls are undefined behavior. 43 + // 44 + // Unless Close-Idem is specified, repeated Close calls are undefined behavior. 44 45 // 45 46 // Unless a doc comment explicitly states otherwise, these labels describe the 46 47 // API contract only. They do not imply any specific implementation strategy.
-2
object/store/loose/write_writer_finalize.go
··· 9 9 ) 10 10 11 11 // Close flushes and closes the underlying zlib stream and temp file. 12 - // 13 - // Repeated calls to Close are undefined behavior. 14 12 func (writer *streamWriter) Close() error { 15 13 errZlib := writer.zw.Close() 16 14 errSync := writer.file.Sync()
-2
object/store/reading.go
··· 54 54 Refresh() error 55 55 56 56 // Close releases resources associated with the backend. 57 - // 58 - // Labels: Close-UB. 59 57 Close() error 60 58 }
-2
ref/store/reading.go
··· 34 34 // Close releases resources associated with the store. 35 35 // 36 36 // Transactions and batches borrowing the store are invalid after Close. 37 - // 38 - // Labels: Close-UB. 39 37 Close() error 40 38 }