mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
10 lines
No EOL
305 B
C#
10 lines
No EOL
305 B
C#
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}");
|
|
}
|
|
} |