mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 03:34:59 +00:00
enhance: display tag's name instead of nothing while showing tooltip of tag without message
This commit is contained in:
parent
a5c25cf9fe
commit
4e41a6207a
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue