Skip to content

Commit

Permalink
Always display BeforeIndex text for PowerLine style prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeithhill committed Nov 30, 2019
1 parent 1e9587f commit b91e8da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GitPrompt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b91e8da

Please sign in to comment.