diff --git a/LibGit2Sharp/TreeEntry.cs b/LibGit2Sharp/TreeEntry.cs index dd2647554..30ced73c2 100644 --- a/LibGit2Sharp/TreeEntry.cs +++ b/LibGit2Sharp/TreeEntry.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using LibGit2Sharp.Core; @@ -8,6 +9,7 @@ namespace LibGit2Sharp /// /// Representation of an entry in a . /// + [DebuggerDisplay("{DebuggerDisplay,nq}")] public class TreeEntry : IEquatable { private readonly ObjectId parentTreeId; @@ -140,5 +142,16 @@ public override int GetHashCode() { return !Equals(left, right); } + + private string DebuggerDisplay + { + get + { + return string.Format(CultureInfo.InvariantCulture, + "TreeEntry: {0} => {1}", + Path, + TargetId); + } + } } }