You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Files.App/Data/Contracts/IVersionControlService.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@
4
4
usingLibGit2Sharp;
5
5
usingSystem.ComponentModel;
6
6
7
-
namespaceFiles.App.Utils.Git
7
+
namespaceFiles.App.Data.Contracts
8
8
{
9
9
/// <summary>
10
10
/// Defines a version control abstraction.
11
11
/// </summary>
12
12
/// <remarks>
13
13
/// This interface is intended to decouple the app from a specific backend implementation (e.g. a library such as LibGit2Sharp, or a command-line implementation backed by the <c>git.exe</c> executable).
14
14
/// </remarks>
15
-
internalinterfaceIVersionControl
15
+
publicinterfaceIVersionControlService
16
16
{
17
17
/// <summary>
18
18
/// Attempts to locate the root of a version control repository (by walking up the directory hierarchy).
Copy file name to clipboardExpand all lines: src/Files.App/Utils/Git/GitHelpers.cs
+23-79Lines changed: 23 additions & 79 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Licensed under the MIT License.
3
3
4
4
usingFiles.App.Dialogs;
5
+
usingFiles.App.Services.Git;
5
6
usingLibGit2Sharp;
6
7
usingMicrosoft.Extensions.Logging;
7
8
usingSentry;
@@ -15,25 +16,38 @@ namespace Files.App.Utils.Git
15
16
internalstaticpartialclassGitHelpers
16
17
{
17
18
// The implementation of the version control interface; it's hardcoded right now but will be made configurable in the future (#16738)
18
-
privatestaticreadonlyLibGit2_implementation=newLibGit2();// TODO: Replace with IVersionControl abstraction when it is complete
19
+
privatestaticLibGit2Service_implementation=Ioc.Default.GetRequiredService<LibGit2Service>();// TODO: Replace with IVersionControl abstraction when it is complete
0 commit comments