EnablePromptStatus should not affect Get-GitStatus #475
Closed
Description
System Details
- posh-git version/path: 0.7.1 C:\Program Files\WindowsPowerShell\Modules\posh-git\0.7.1
- PowerShell version: 5.1.14393.1198
- git version 2.10.0.windows.1
- OS: Microsoft Windows NT 10.0.14393.0
Issue Description
I have a use case which needs to disable the command prompt status while still using the Get-GitStatus function. Disabling the prompt is easy: set GitPromptSettings.EnablePromptStatus to false. But, Get-GitStatus also checks that setting, making the command ineffective.
If this coupling is not intentional, I propose adding a separate setting, such as EnableGetStatus or EnableGetGitStatus, so that these pieces of functionality can be managed separately.
If it is intentional, a simple enough workaround is wrapping Get-GitStatus with a function that temporarily changes the GitPromptSettings.
Metadata
Assignees
Labels
No labels