From de297200473e9ac8106c84a8e8b823924d4b05c2 Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 6 Sep 2026 09:07:44 +1000 Subject: [PATCH] refactor(git-provider): Move ParsedGitFolderDetails to own file --- .../Git/GitRepoRegistrationManager.cs | 16 ---------------- .../Git/Models/ParsedGitFolderDetails.cs | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 src/ModuleCore/Git/Models/ParsedGitFolderDetails.cs diff --git a/src/ModuleCore/Git/GitRepoRegistrationManager.cs b/src/ModuleCore/Git/GitRepoRegistrationManager.cs index 1ade336..d6ddd57 100644 --- a/src/ModuleCore/Git/GitRepoRegistrationManager.cs +++ b/src/ModuleCore/Git/GitRepoRegistrationManager.cs @@ -390,20 +390,4 @@ public class GitRepoRegistrationManager return _currentBranch.Trim(); } } -} - -/// -/// The directory details of the directory returned from git rev-parse --show-toplevel -/// -public class ParsedGitFolderDetails -{ - /// - /// The full path to the top level folder containing a git repository - /// - public string Directory { get; init; } = null!; - - /// - /// The last folder name of the directory - /// - public string Folder { get; init; } = null!; } \ No newline at end of file diff --git a/src/ModuleCore/Git/Models/ParsedGitFolderDetails.cs b/src/ModuleCore/Git/Models/ParsedGitFolderDetails.cs new file mode 100644 index 0000000..a785be0 --- /dev/null +++ b/src/ModuleCore/Git/Models/ParsedGitFolderDetails.cs @@ -0,0 +1,17 @@ +namespace ModuleCore.Git.Models; + +/// +/// The directory details of the directory returned from git rev-parse --show-toplevel +/// +public class ParsedGitFolderDetails +{ + /// + /// The full path to the top level folder containing a git repository + /// + public string Directory { get; init; } = null!; + + /// + /// The last folder name of the directory + /// + public string Folder { get; init; } = null!; +} \ No newline at end of file