File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,17 @@ public QueryTags(string repo)
29
29
continue ;
30
30
31
31
var name = subs [ 0 ] . Substring ( 10 ) ;
32
+ var message = subs [ 5 ] . Trim ( ) ;
33
+ if ( ! string . IsNullOrEmpty ( message ) && message . Equals ( name , StringComparison . Ordinal ) )
34
+ message = null ;
35
+
32
36
tags . Add ( new Models . Tag ( )
33
37
{
34
38
Name = name ,
35
39
IsAnnotated = subs [ 1 ] . Equals ( "tag" , StringComparison . Ordinal ) ,
36
40
SHA = string . IsNullOrEmpty ( subs [ 3 ] ) ? subs [ 2 ] : subs [ 3 ] ,
37
41
CreatorDate = ulong . Parse ( subs [ 4 ] ) ,
38
- Message = subs [ 5 ] . Trim ( ) ,
42
+ Message = message ,
39
43
} ) ;
40
44
}
41
45
Original file line number Diff line number Diff line change 38
38
</Border >
39
39
</StackPanel >
40
40
41
- <TextBlock Text =" {Binding Message}" IsVisible =" {Binding Message, Converter={x:Static c: StringConverters.IsNotNullOrWhitespace }}" />
41
+ <TextBlock Text =" {Binding Message}" IsVisible =" {Binding Message, Converter={x:Static StringConverters.IsNotNullOrEmpty }}" />
42
42
</StackPanel >
43
43
</DataTemplate >
44
44
</Border .DataTemplates>
95
95
</Border >
96
96
</StackPanel >
97
97
98
- <TextBlock Text =" {Binding Message}" IsVisible =" {Binding Message, Converter={x:Static c: StringConverters.IsNotNullOrWhitespace }}" />
98
+ <TextBlock Text =" {Binding Message}" IsVisible =" {Binding Message, Converter={x:Static StringConverters.IsNotNullOrEmpty }}" />
99
99
</StackPanel >
100
100
</ToolTip .Tip>
101
101
You can’t perform that action at this time.
0 commit comments