Skip to content

Commit 4e41a62

Browse files
committed
enhance: display tag's name instead of nothing while showing tooltip of tag without message
1 parent a5c25cf commit 4e41a62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Commands/QueryTags.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ public QueryTags(string repo)
2828
if (subs.Length != 5)
2929
continue;
3030

31+
var name = subs[0].Substring(10);
3132
var message = subs[4].Trim();
3233
tags.Add(new Models.Tag()
3334
{
34-
Name = subs[0].Substring(10),
35+
Name = name,
3536
SHA = string.IsNullOrEmpty(subs[2]) ? subs[1] : subs[2],
3637
CreatorDate = ulong.Parse(subs[3]),
37-
Message = string.IsNullOrEmpty(message) ? null : message,
38+
Message = string.IsNullOrEmpty(message) ? name : message,
3839
});
3940
}
4041

0 commit comments

Comments
 (0)