Round commit graph connections

This commit is contained in:
Georg Bauer
2026-07-31 17:44:09 +02:00
parent dba6359d30
commit eadbadd3cb
6 changed files with 144 additions and 49 deletions

View File

@@ -1487,18 +1487,20 @@ public struct CommitRow: Equatable, Hashable {
public var topLanes: [UInt32]
public var bottomLanes: [UInt32]
public var nodeLane: UInt32?
public var connections: [UInt32]
public var topConnections: [UInt32]
public var bottomConnections: [UInt32]
// Default memberwise initializers are never public by default, so we
// declare one manually.
public init(sha: String, title: String, detail: String, topLanes: [UInt32], bottomLanes: [UInt32], nodeLane: UInt32?, connections: [UInt32]) {
public init(sha: String, title: String, detail: String, topLanes: [UInt32], bottomLanes: [UInt32], nodeLane: UInt32?, topConnections: [UInt32], bottomConnections: [UInt32]) {
self.sha = sha
self.title = title
self.detail = detail
self.topLanes = topLanes
self.bottomLanes = bottomLanes
self.nodeLane = nodeLane
self.connections = connections
self.topConnections = topConnections
self.bottomConnections = bottomConnections
}
@@ -1523,7 +1525,8 @@ public struct FfiConverterTypeCommitRow: FfiConverterRustBuffer {
topLanes: FfiConverterSequenceUInt32.read(from: &buf),
bottomLanes: FfiConverterSequenceUInt32.read(from: &buf),
nodeLane: FfiConverterOptionUInt32.read(from: &buf),
connections: FfiConverterSequenceUInt32.read(from: &buf)
topConnections: FfiConverterSequenceUInt32.read(from: &buf),
bottomConnections: FfiConverterSequenceUInt32.read(from: &buf)
)
}
@@ -1534,7 +1537,8 @@ public struct FfiConverterTypeCommitRow: FfiConverterRustBuffer {
FfiConverterSequenceUInt32.write(value.topLanes, into: &buf)
FfiConverterSequenceUInt32.write(value.bottomLanes, into: &buf)
FfiConverterOptionUInt32.write(value.nodeLane, into: &buf)
FfiConverterSequenceUInt32.write(value.connections, into: &buf)
FfiConverterSequenceUInt32.write(value.topConnections, into: &buf)
FfiConverterSequenceUInt32.write(value.bottomConnections, into: &buf)
}
}