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 11using System ;
2+ using System . Diagnostics ;
23using System . Globalization ;
34using System . Runtime . InteropServices ;
45using LibGit2Sharp . Core ;
@@ -8,6 +9,7 @@ namespace LibGit2Sharp
89 /// <summary>
910 /// Representation of an entry in a <see cref="Tree"/>.
1011 /// </summary>
12+ [ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
1113 public class TreeEntry : IEquatable < TreeEntry >
1214 {
1315 private readonly ObjectId parentTreeId ;
@@ -140,5 +142,16 @@ public override int GetHashCode()
140142 {
141143 return ! Equals ( left , right ) ;
142144 }
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+ }
143156 }
144157}
You can’t perform that action at this time.
0 commit comments