RootBranch DebbuggerDisplay attribute added
This commit is contained in:
committed by
Philippe Miossec
parent
9b4c538b41
commit
8ed59efddf
@@ -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" : "")); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user