mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user