From 0e9b1574a8ee85fa29cf44bf68eefb90ab86b429 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 24 Jul 2020 17:17:53 +0800 Subject: [PATCH] feature(Submodule): add button to do `submodule update` --- SourceGit/Git/Branch.cs | 12 ++++++------ SourceGit/UI/Dashboard.xaml | 5 +++++ SourceGit/UI/Dashboard.xaml.cs | 9 ++++++++- SourceGit/UI/Waiting.xaml | 8 ++++++++ SourceGit/UI/Waiting.xaml.cs | 35 ++++++++++++++++++++++++++++++++++ 5 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 SourceGit/UI/Waiting.xaml create mode 100644 SourceGit/UI/Waiting.xaml.cs diff --git a/SourceGit/Git/Branch.cs b/SourceGit/Git/Branch.cs index 05375b95..5410c9b6 100644 --- a/SourceGit/Git/Branch.cs +++ b/SourceGit/Git/Branch.cs @@ -26,27 +26,27 @@ namespace SourceGit.Git { /// /// Branch name /// - public string Name { get; set; } + public string Name { get; set; } = ""; /// /// Full name. /// - public string FullName { get; set; } + public string FullName { get; set; } = ""; /// /// Head ref /// - public string Head { get; set; } + public string Head { get; set; } = ""; /// /// Subject for head ref. /// - public string HeadSubject { get; set; } + public string HeadSubject { get; set; } = ""; /// /// Is local branch /// - public bool IsLocal { get; set; } + public bool IsLocal { get; set; } = false; /// /// Branch type. @@ -56,7 +56,7 @@ namespace SourceGit.Git { /// /// Remote name. Only used for remote branch /// - public string Remote { get; set; } + public string Remote { get; set; } = ""; /// /// Upstream. Only used for local branches. diff --git a/SourceGit/UI/Dashboard.xaml b/SourceGit/UI/Dashboard.xaml index b09f1b5e..478e14fb 100644 --- a/SourceGit/UI/Dashboard.xaml +++ b/SourceGit/UI/Dashboard.xaml @@ -445,12 +445,17 @@ + +