summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorAnton Medvedev <anton@medv.io>2025-12-07 16:56:52 +0100
committerAnton Medvedev <anton@medv.io>2025-12-07 16:56:52 +0100
commit1441fb29d93481f7bea76bbfa2a9f289ed1ac4f0 (patch)
tree6d01f974638c519780406f67158c9160cf06e7cc /commit.go
parent20a5d07b2a4620ace14c6a5f622ca45e27f9c20d (diff)
Refactor code by introducing `Ref` type
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.go b/commit.go
index 571c8e2..ef18913 100644
--- a/commit.go
+++ b/commit.go
@@ -230,7 +230,7 @@ func generateCommitPage(commit git.Commit, params Params) error {
})
currentRef := params.DefaultRef
- if commit.Branch != "" {
+ if !commit.Branch.IsEmpty() {
currentRef = commit.Branch
}