Permalink
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...
markembling committed Mar 24, 2010
1 parent 26318c7 commit da204ca5045e0432b4c22b5aa219098cdb01a6b3
Showing with 2 additions and 2 deletions.
  1. +2 −2 GitUtils.ps1
View
@@ -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'
-}
+}

0 comments on commit da204ca

Please sign in to comment.