ux: use abbrev-hash of commit if the friendly name of it is longer than 32 chars

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-02-06 16:44:36 +08:00
parent 0e986b4238
commit bfcc505f5a

View File

@@ -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)
{