From bfcc505f5a08b79c9192130802f3ff169fd893a8 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 6 Feb 2026 16:44:36 +0800 Subject: [PATCH] ux: use abbrev-hash of commit if the friendly name of it is longer than 32 chars Signed-off-by: leo --- src/Views/Histories.axaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index 25d03b66..4821c3bf 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -608,6 +608,8 @@ namespace SourceGit.Views if (!repo.IsBare) { var target = commit.GetFriendlyName(); + if (target.Length > 32) + target = commit.SHA.Substring(0, 10); if (isHead) {