Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions LibGit2Sharp/RefSpec.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Diagnostics;
using System.Globalization;
using LibGit2Sharp.Core;
using LibGit2Sharp.Core.Handles;

Expand All @@ -7,6 +9,7 @@ namespace LibGit2Sharp
/// <summary>
/// A push or fetch reference specification
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RefSpec
{
private RefSpec(string refSpec, RefSpecDirection direction, string source, string destination, bool forceUpdate)
Expand Down Expand Up @@ -60,5 +63,14 @@ internal static RefSpec BuildFromPtr(GitRefSpecHandle handle)
/// Indicates whether the destination will be force-updated if fast-forwarding is not possible
/// </summary>
public virtual bool ForceUpdate { get; private set; }

private string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture,
"{0}", Specification);
}
}
}
}