mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 13:45:00 +00:00
8 lines
302 B
C#
8 lines
302 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}");
|
|
}
|
|
}
|