From b91e8da21720360574e6a3ce00b8d1fdf0ae17f5 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Fri, 29 Nov 2019 22:45:13 -0700 Subject: [PATCH] Always display BeforeIndex text for PowerLine style prompts --- src/GitPrompt.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GitPrompt.ps1 b/src/GitPrompt.ps1 index 59bbbda18..2a752b93c 100644 --- a/src/GitPrompt.ps1 +++ b/src/GitPrompt.ps1 @@ -223,8 +223,9 @@ function Write-GitStatus { $sb | Write-GitBranchName $Status -NoLeadingSpace > $null $sb | Write-GitBranchStatus $Status > $null + $sb | Write-Prompt $s.BeforeIndex > $null + if ($s.EnableFileStatus -and $Status.HasIndex) { - $sb | Write-Prompt $s.BeforeIndex > $null $sb | Write-GitIndexStatus $Status > $null if ($Status.HasWorking) {