mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44: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)
|
if (subs.Length != 5)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
var name = subs[0].Substring(10);
|
||||||
var message = subs[4].Trim();
|
var message = subs[4].Trim();
|
||||||
tags.Add(new Models.Tag()
|
tags.Add(new Models.Tag()
|
||||||
{
|
{
|
||||||
Name = subs[0].Substring(10),
|
Name = name,
|
||||||
SHA = string.IsNullOrEmpty(subs[2]) ? subs[1] : subs[2],
|
SHA = string.IsNullOrEmpty(subs[2]) ? subs[1] : subs[2],
|
||||||
CreatorDate = ulong.Parse(subs[3]),
|
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