sourcegit/src/SourceGit/Converters/BranchConverters.cs

10 lines
305 B
C#
Raw Normal View History

using Avalonia.Data.Converters;
namespace SourceGit.Converters
{
public static class BranchConverters
{
public static FuncValueConverter<Models.Branch, string> ToName =
new FuncValueConverter<Models.Branch, string>(v => v.IsLocal ? v.Name : $"{v.Remote}/{v.Name}");
}
}