diff options
| author | Christian Cleberg <[email protected]> | 2026-08-07 17:41:00 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-07 17:41:00 -0500 |
| commit | ff200d21e93d6683f779fe1f3280ac8d8561d393 (patch) | |
| tree | f6603518ba62134faa699d864003b90464930ab9 /Hutch/Models/CommitDetail.swift | |
| parent | 9d85bc7c154843693913bf0cc67c6e9ff0d8f897 (diff) | |
| parent | 283fbf00fdffd64c924b6cb22c84e803b718f078 (diff) | |
| download | hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.gz hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.bz2 hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.zip | |
Adopt Swift 6 language mode
Diffstat (limited to 'Hutch/Models/CommitDetail.swift')
| -rw-r--r-- | Hutch/Models/CommitDetail.swift | 16 |
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? |
