feat(git-provider): Update debug output when registering
- output when no name is given - update message when current location is confirmed to be a git repo
This commit is contained in:
parent
8d64b1aa9e
commit
46eeb0cb1e
2 changed files with 12 additions and 1 deletions
|
|
@ -108,6 +108,7 @@ public class GitManager
|
|||
|
||||
if (_registrations.TryAdd(registrationName, gitRegistration))
|
||||
{
|
||||
_debugWriterDelegate?.Invoke($"Registered '{gitRegistration.Location}' to name '{registrationName}'");
|
||||
return registrationName;
|
||||
}
|
||||
|
||||
|
|
@ -196,6 +197,9 @@ public class GitManager
|
|||
|
||||
/// <summary>
|
||||
/// Returns the git root directory for any nested directory if git rev-parse --show-toplevel returns a value.
|
||||
/// <para>
|
||||
/// Will always return a non-null value if the directory is a git repo, otherwise an exception will be thrown
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="path">Path to check if it or any of its parents contain a git repository</param>
|
||||
/// <returns></returns>
|
||||
|
|
@ -236,7 +240,7 @@ public class GitManager
|
|||
// Gotta trim what we get as it might already have a newline character at the end
|
||||
var dirInfo = new DirectoryInfo(directory.Trim());
|
||||
|
||||
_debugWriterDelegate?.Invoke("...location is a git repo (duh).");
|
||||
_debugWriterDelegate?.Invoke("...location is a git repo!");
|
||||
|
||||
var repoFolderInfo = new ParsedGitFolderDetails
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue