summaryrefslogtreecommitdiff
path: root/Hutch/Models/CommitDetail.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Models/CommitDetail.swift')
-rw-r--r--Hutch/Models/CommitDetail.swift16
1 files changed, 8 insertions, 8 deletions
diff --git a/Hutch/Models/CommitDetail.swift b/Hutch/Models/CommitDetail.swift
index c95199d..962d2a4 100644
--- a/Hutch/Models/CommitDetail.swift
+++ b/Hutch/Models/CommitDetail.swift
@@ -1,7 +1,7 @@
import Foundation
/// Full commit detail returned by the revparse_single query.
-struct CommitDetail: Codable, Sendable, Identifiable {
+nonisolated struct CommitDetail: Codable, Sendable, Identifiable {
let id: String
let shortId: String
let author: CommitAuthor
@@ -26,39 +26,39 @@ struct CommitDetail: Codable, Sendable, Identifiable {
}
}
-struct CommitTrailer: Codable, Sendable, Identifiable {
+nonisolated struct CommitTrailer: Codable, Sendable, Identifiable {
var id: String { "\(name):\(value)" }
let name: String
let value: String
}
-struct ParentCommit: Codable, Sendable, Identifiable, Hashable {
+nonisolated struct ParentCommit: Codable, Sendable, Identifiable, Hashable {
let id: String
let shortId: String
let author: ParentAuthor
}
-struct ParentAuthor: Codable, Sendable, Hashable {
+nonisolated struct ParentAuthor: Codable, Sendable, Hashable {
let name: String
}
-struct CommitTree: Codable, Sendable {
+nonisolated struct CommitTree: Codable, Sendable {
let entries: CommitTreeEntries
}
-struct CommitTreeEntries: Codable, Sendable {
+nonisolated struct CommitTreeEntries: Codable, Sendable {
let results: [CommitTreeEntry]
let cursor: String?
}
-struct CommitTreeEntry: Codable, Sendable, Identifiable {
+nonisolated struct CommitTreeEntry: Codable, Sendable, Identifiable {
let id: String
let name: String
let mode: Int
let object: CommitTreeObject?
}
-struct CommitTreeObject: Codable, Sendable {
+nonisolated struct CommitTreeObject: Codable, Sendable {
let type: String?
let id: String?
let shortId: String?