We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a6001 commit 7b0507eCopy full SHA for 7b0507e
LibGit2Sharp/TreeEntry.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.Diagnostics;
3
using System.Globalization;
4
using System.Runtime.InteropServices;
5
using LibGit2Sharp.Core;
@@ -8,6 +9,7 @@ namespace LibGit2Sharp
8
9
/// <summary>
10
/// Representation of an entry in a <see cref="Tree"/>.
11
/// </summary>
12
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
13
public class TreeEntry : IEquatable<TreeEntry>
14
{
15
private readonly ObjectId parentTreeId;
@@ -140,5 +142,16 @@ public override int GetHashCode()
140
142
141
143
return !Equals(left, right);
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
156
157
0 commit comments