enhance: display tag's name instead of nothing while showing tooltip of tag without message

This commit is contained in:
leo 2025-05-13 10:01:41 +08:00
parent a5c25cf9fe
commit 4e41a6207a
No known key found for this signature in database

View file

@ -28,13 +28,14 @@ namespace SourceGit.Commands
if (subs.Length != 5)
continue;
var name = subs[0].Substring(10);
var message = subs[4].Trim();
tags.Add(new Models.Tag()
{
Name = subs[0].Substring(10),
Name = name,
SHA = string.IsNullOrEmpty(subs[2]) ? subs[1] : subs[2],
CreatorDate = ulong.Parse(subs[3]),
Message = string.IsNullOrEmpty(message) ? null : message,
Message = string.IsNullOrEmpty(message) ? name : message,
});
}