Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed Status.HasWorking so that it checks both the diffFiles and the

filesAdded instead of the diffFiles only (via jfcantin).
  • Loading branch information...
commit da204ca5045e0432b4c22b5aa219098cdb01a6b3 1 parent 26318c7
@markembling markembling authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 GitUtils.ps1
View
4 GitUtils.ps1
@@ -60,7 +60,7 @@ function Get-GitStatus {
IndexAdded = $indexAdded
IndexModified = $indexModified
IndexDeleted = $indexDeleted
- HasWorking = [bool]$diffFiles
+ HasWorking = [bool]$diffFiles -or [bool]$filesAdded
Working = ($diffFiles | %{ $_.Path })
WorkingAdded = $filesAdded
WorkingModified = $filesModified
@@ -76,4 +76,4 @@ function Get-GitStatus {
function Enable-GitColors {
$env:TERM = 'cygwin'
$env:LESS = 'FRSX'
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.