docs(git-provider): Document Get-GitRepoRegistration

- update comments for related classes and methods
This commit is contained in:
Scott 2026-08-26 14:34:18 +10:00
commit 52944936ed
3 changed files with 25 additions and 0 deletions

View file

@ -38,6 +38,19 @@ If the current directory is not in a git repo, a registration already exists by
`Get-GitRepoRegistration`
Returns all currently registered git repositories, as well as their current branch.
```pwsh
PS D:/Repos/Project-a> Get-GitRepoRegistration
Name Location CurrentBranch
---- -------- -------------
test-repo D:/Repos/Project-a main
Project-a D:/Repos/Project-a main
```
The current branch is cached for 15 minutes for performance reasons so it may not be up to date if a git repo has recently had its branch changed.
## Show-GitRepoRegistration
`Show-GitRepoRegistration -Name string [-NoStack|-NoSetLocation]`