feat(git-provider): Display current branch when listing registered repos

- change setters to init when parsing git folders
- change Console.WriteLine to Debug.WriteLine in GitManager constructor
This commit is contained in:
Scott 2026-08-24 10:09:58 +10:00
commit 39022e4186
3 changed files with 64 additions and 4 deletions

View file

@ -4,6 +4,10 @@ using ModuleCore.Git;
namespace PowershellModule.Git.Commands;
// TODO: decide on if I like Show to be used as the verb name. Other options I have are push/pop and open.
// Seeing as this is likely just for me currently, Show-GitRepo suits my workflow more where I'll want to quickly just
// pushd into a git repo, do whatever I want to do with it/change directories in it whatever, and then popd at the end.
// I'll also be integrating the current stack into the custom prompt whenever I get around to doing that
[Cmdlet(VerbsCommon.Show, GitCommands.GitRepoNoun)]
public class ShowGitRepoCommand : PSCmdlet
{