refactor(git-provider): Move ParsedGitFolderDetails to own file

This commit is contained in:
Scott 2026-09-06 09:07:44 +10:00
commit de29720047
2 changed files with 17 additions and 16 deletions

View file

@ -390,20 +390,4 @@ public class GitRepoRegistrationManager
return _currentBranch.Trim(); return _currentBranch.Trim();
} }
} }
}
/// <summary>
/// The directory details of the directory returned from git rev-parse --show-toplevel
/// </summary>
public class ParsedGitFolderDetails
{
/// <summary>
/// The full path to the top level folder containing a git repository
/// </summary>
public string Directory { get; init; } = null!;
/// <summary>
/// The last folder name of the directory
/// </summary>
public string Folder { get; init; } = null!;
} }

View file

@ -0,0 +1,17 @@
namespace ModuleCore.Git.Models;
/// <summary>
/// The directory details of the directory returned from git rev-parse --show-toplevel
/// </summary>
public class ParsedGitFolderDetails
{
/// <summary>
/// The full path to the top level folder containing a git repository
/// </summary>
public string Directory { get; init; } = null!;
/// <summary>
/// The last folder name of the directory
/// </summary>
public string Folder { get; init; } = null!;
}