diff --git a/data/resources/StringResources.resx b/data/resources/StringResources.resx
index d9f7fd02b7..eac59532d7 100644
--- a/data/resources/StringResources.resx
+++ b/data/resources/StringResources.resx
@@ -409,6 +409,10 @@ They will stop working after removing this AddIn! Are you sure you want to conti
Show Class Diagram
+
+ Sync
+ Synchronize changes with remote repository
+
TortoiseGit needs to be installed to execute this action.
Error message when executing git command but TortoiseGit cannot be found
diff --git a/src/AddIns/VersionControl/GitAddIn/GitAddIn.addin b/src/AddIns/VersionControl/GitAddIn/GitAddIn.addin
index bff6d61d68..15a6100fb9 100644
--- a/src/AddIns/VersionControl/GitAddIn/GitAddIn.addin
+++ b/src/AddIns/VersionControl/GitAddIn/GitAddIn.addin
@@ -40,6 +40,18 @@
+
+
+
+
+
+
diff --git a/src/AddIns/VersionControl/GitAddIn/Src/Commands.cs b/src/AddIns/VersionControl/GitAddIn/Src/Commands.cs
index 535c819b73..3ecd388690 100644
--- a/src/AddIns/VersionControl/GitAddIn/Src/Commands.cs
+++ b/src/AddIns/VersionControl/GitAddIn/Src/Commands.cs
@@ -116,4 +116,28 @@ namespace ICSharpCode.GitAddIn
GitGuiWrapper.Log(filename, callback);
}
}
+
+ public class GitSyncCommand : GitCommand
+ {
+ protected override void Run(string filename, Action callback)
+ {
+ GitGuiWrapper.Sync(filename, callback);
+ }
+ }
+
+ public class GitBlameCommand : GitCommand
+ {
+ protected override void Run(string filename, Action callback)
+ {
+ GitGuiWrapper.Blame(filename, callback);
+ }
+ }
+
+ public class GitSettingsCommand : GitCommand
+ {
+ protected override void Run(string filename, Action callback)
+ {
+ GitGuiWrapper.ShowGitSettings(filename, callback);
+ }
+ }
}
diff --git a/src/AddIns/VersionControl/GitAddIn/Src/GitGuiWrapper.cs b/src/AddIns/VersionControl/GitAddIn/Src/GitGuiWrapper.cs
index a905cdbc42..47a1c1330b 100644
--- a/src/AddIns/VersionControl/GitAddIn/Src/GitGuiWrapper.cs
+++ b/src/AddIns/VersionControl/GitAddIn/Src/GitGuiWrapper.cs
@@ -119,5 +119,20 @@ namespace ICSharpCode.GitAddIn
{
Proc("log", fileName, callback);
}
+
+ public static void Sync(string fileName, Action callback)
+ {
+ Proc("sync", fileName, callback);
+ }
+
+ public static void Blame(string fileName, Action callback)
+ {
+ Proc("blame", fileName, callback);
+ }
+
+ public static void ShowGitSettings(string fileName, Action callback)
+ {
+ Proc("settings", fileName, callback);
+ }
}
}