/
vasiukoff
/
sg
Обзор
Документация
Войти
/
vasiukoff
/
sg
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Models/RepositoryStatus.cs
29 строк
732 B
leo
refactor: use new command `QueryRepositoryStatus` to update repository status in `Welcome` page
22 окт 2025, 12:42
22 окт 2025, 12:42
02ecd58
Код
Авторство
О чём код?
namespace SourceGit.Models { public class RepositoryStatus { public string CurrentBranch { get; set; } = string.Empty; public int Ahead { get; set; } = 0; public int Behind { get; set; } = 0; public int LocalChanges { get; set; } = 0; public bool IsTrackingStatusVisible { get { return Ahead > 0 || Behind > 0; } } public string TrackingDescription { get { if (Ahead > 0) return Behind > 0 ? $"{Ahead}↑ {Behind}↓" : $"{Ahead}↑"; return Behind > 0 ? $"{Behind}↓" : string.Empty; } } } }