From 008836ebd5f1dcd150d24047a4b80e1888f6dacb Mon Sep 17 00:00:00 2001 From: Marcus Reid Date: Sun, 6 Sep 2015 08:29:22 -0700 Subject: [PATCH] Read stash count from cache. --- GitUtils.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/GitUtils.ps1 b/GitUtils.ps1 index da981da17..d7511026a 100644 --- a/GitUtils.ps1 +++ b/GitUtils.ps1 @@ -144,6 +144,7 @@ function Get-GitStatus($gitDir = (Get-GitDirectory)) { $aheadBy = $cacheResponse.AheadBy $behindBy = $cacheResponse.BehindBy + if ($cacheResponse.Stashes) { $stashCount = $cacheResponse.Stashes.Length } if ($cacheResponse.State) { $branch += "|" + $cacheResponse.State } } else { dbg 'Getting status' $sw