File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
+ using System . Diagnostics ;
2
3
using System . Globalization ;
3
4
using System . Runtime . InteropServices ;
4
5
using LibGit2Sharp . Core ;
@@ -8,6 +9,7 @@ namespace LibGit2Sharp
8
9
/// <summary>
9
10
/// Representation of an entry in a <see cref="Tree"/>.
10
11
/// </summary>
12
+ [ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
11
13
public class TreeEntry : IEquatable < TreeEntry >
12
14
{
13
15
private readonly ObjectId parentTreeId ;
@@ -140,5 +142,16 @@ public override int GetHashCode()
140
142
{
141
143
return ! Equals ( left , right ) ;
142
144
}
145
+
146
+ private string DebuggerDisplay
147
+ {
148
+ get
149
+ {
150
+ return string . Format ( CultureInfo . InvariantCulture ,
151
+ "TreeEntry: {0} => {1}" ,
152
+ Path ,
153
+ TargetId ) ;
154
+ }
155
+ }
143
156
}
144
157
}
You can’t perform that action at this time.
0 commit comments