RootBranch DebbuggerDisplay attribute added

This commit is contained in:
Arkady Shapkin
2014-02-07 11:23:13 +04:00
committed by Philippe Miossec
parent 9b4c538b41
commit 8ed59efddf
+8
View File
@@ -1,5 +1,8 @@
using System.Diagnostics;
namespace Sep.Git.Tfs.Core.TfsInterop
{
[DebuggerDisplay("{DebuggerDisplay}")]
public class RootBranch
{
public RootBranch(int rootChangeset, string tfsBranchPath)
@@ -11,5 +14,10 @@ namespace Sep.Git.Tfs.Core.TfsInterop
public int RootChangeset { get; private set; }
public string TfsBranchPath { get; private set; }
public bool IsRenamedBranch { get; set; }
private string DebuggerDisplay
{
get { return string.Format("{0} C{1}{2}", TfsBranchPath, RootChangeset, (IsRenamedBranch ? " renamed" : "")); }
}
}
}