summaryrefslogtreecommitdiff
path: root/Hutch/Models/Git.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-01 23:37:12 -0500
committerChristian Cleberg <[email protected]>2026-04-01 23:37:12 -0500
commit0bef9acc515cfcb4ac6e2530cd34cbdbc47c2c1d (patch)
tree4457ca8d3fcc1f53383c9da46e19661a039834df /Hutch/Models/Git.swift
parenta83893afa086f0050c825144fa818024db4df056 (diff)
downloadhutch-2.8.1.tar.gz
hutch-2.8.1.tar.bz2
hutch-2.8.1.zip
feat: show commit dates in Refs tabv2.8.1
Diffstat (limited to 'Hutch/Models/Git.swift')
-rw-r--r--Hutch/Models/Git.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/Hutch/Models/Git.swift b/Hutch/Models/Git.swift
index 905822e..a45086b 100644
--- a/Hutch/Models/Git.swift
+++ b/Hutch/Models/Git.swift
@@ -82,6 +82,13 @@ struct Reference: Codable, Sendable, Hashable {
let target: String?
}
+/// A Git reference enriched with the date of its tip commit or tag, for display in the Refs tab.
+struct ReferenceDetail: Sendable, Hashable {
+ let name: String
+ let target: String?
+ let date: Date?
+}
+
// MARK: - TreeEntry
/// An entry in a Git tree (file or directory).