Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be sure to honor EnableStashStatus when using cache #762

Merged
merged 1 commit into from
Apr 12, 2020

Conversation

rkeithhill
Copy link
Collaborator

Fix #761

@rkeithhill rkeithhill merged commit 14e274d into master Apr 12, 2020
@rkeithhill rkeithhill deleted the rkeithhill/honor-enablestashstatus-setting branch April 12, 2020 04:22
@@ -285,8 +285,13 @@ function Get-GitStatus {
$aheadBy = $cacheResponse.AheadBy
$behindBy = $cacheResponse.BehindBy

if ($cacheResponse.Stashes) { $stashCount = $cacheResponse.Stashes.Length }
if ($cacheResponse.State) { $branch += "|" + $cacheResponse.State }
if ($settings.EnableStashStatus -and $cacheResponse.Stashes) {
Copy link
Owner

@dahlbyk dahlbyk Apr 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If @cmarcusreid gets bored, the API could conceivably receive request options like this to prevent the cache from doing background work the user doesn't care about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When using git-status-cache stash settings are not respected
3 participants