diff --git a/src/Models/DiffResult.cs b/src/Models/DiffResult.cs
index 8a72b35d..d9d21031 100644
--- a/src/Models/DiffResult.cs
+++ b/src/Models/DiffResult.cs
@@ -582,6 +582,12 @@ namespace SourceGit.Models
public string New { get; set; } = string.Empty;
}
+ public class SubmoduleDiff
+ {
+ public Commit Old { get; set; } = null;
+ public Commit New { get; set; } = null;
+ }
+
public class DiffResult
{
public bool IsBinary { get; set; } = false;
diff --git a/src/Models/Remote.cs b/src/Models/Remote.cs
index c1cce340..75ca961f 100644
--- a/src/Models/Remote.cs
+++ b/src/Models/Remote.cs
@@ -4,11 +4,11 @@ namespace SourceGit.Models
{
public partial class Remote
{
- [GeneratedRegex(@"^http[s]?://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-/]+/[\w\-\.]+\.git$")]
+ [GeneratedRegex(@"^http[s]?://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-/]+/[\w\-\.]+(\.git)?$")]
private static partial Regex REG_HTTPS();
- [GeneratedRegex(@"^[\w\-]+@[\w\.\-]+(\:[0-9]+)?:[\w\-/]+/[\w\-\.]+\.git$")]
+ [GeneratedRegex(@"^[\w\-]+@[\w\.\-]+(\:[0-9]+)?:[\w\-/]+/[\w\-\.]+(\.git)?$")]
private static partial Regex REG_SSH1();
- [GeneratedRegex(@"^ssh://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-/]+/[\w\-\.]+\.git$")]
+ [GeneratedRegex(@"^ssh://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-/]+/[\w\-\.]+(\.git)?$")]
private static partial Regex REG_SSH2();
private static readonly Regex[] URL_FORMATS = [
diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml
index ea98a86b..cdd3fde8 100644
--- a/src/Resources/Locales/en_US.axaml
+++ b/src/Resources/Locales/en_US.axaml
@@ -161,6 +161,8 @@
NO CHANGES OR ONLY EOL CHANGES
Previous Difference
Side-By-Side Diff
+ SUBMODULE
+ NEW
Syntax Highlighting
Open In Merge Tool
Decrease Number of Visible Lines
diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml
index adb90a98..74c4ff0b 100644
--- a/src/Resources/Locales/zh_CN.axaml
+++ b/src/Resources/Locales/zh_CN.axaml
@@ -161,6 +161,8 @@
没有变更或仅有换行符差异
上一个差异
分列对比
+ 子模块
+ 新增
语法高亮
使用外部合并工具查看
减少可见的行数
diff --git a/src/Resources/Styles.axaml b/src/Resources/Styles.axaml
index f7eb7054..daf7ce22 100644
--- a/src/Resources/Styles.axaml
+++ b/src/Resources/Styles.axaml
@@ -72,7 +72,7 @@
-