Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

SPACEFISH_GIT_STATUS_SHOW is never checked #155

Merged
merged 3 commits into from
Feb 14, 2019
Merged

Conversation

hrvoj3e
Copy link
Contributor

@hrvoj3e hrvoj3e commented Feb 13, 2019

SPACEFISH_GIT_STATUS_SHOW can not be turned off - check this variable and return if false

Description

Motivation and Context

Improves #154

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if appropriate):

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux

Checklist:

  • I have checked that no other PR duplicates mine
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

SPACEFISH_GIT_STATUS_SHOW can not be turned off
@hrvoj3e
Copy link
Contributor Author

hrvoj3e commented Feb 13, 2019

https://github.com/denysdovhan/spaceship-prompt/blob/master/sections/git_status.zsh

spaceship_git_status() {
  [[ $SPACESHIP_GIT_STATUS_SHOW == false ]] && return

  spaceship::is_git || return
...
...

@matchai matchai added the Type: Bug Fix an existing bug label Feb 14, 2019
@matchai
Copy link
Owner

matchai commented Feb 14, 2019

Hey @hrvoj3e. Thank you for the contribution! 😄
That's a great bug you caught. Before we have this merge in, could you please add a test for this config option so that we can catch future regressions?

The appropriate test file is here: https://github.com/matchai/spacefish/blob/master/tests/__sf_section_git_status.test.fish

@hrvoj3e
Copy link
Contributor Author

hrvoj3e commented Feb 14, 2019

Is this OK? 8761549

Copy link
Owner

@matchai matchai left a comment

Choose a reason for hiding this comment

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

Yes, looks great!
Thank you for your contribution. 😄

@matchai matchai merged commit 1d34eb9 into matchai:master Feb 14, 2019
matchai pushed a commit that referenced this pull request Feb 14, 2019
## [2.2.2](v2.2.1...v2.2.2) (2019-02-14)

### Bug Fixes

* show git status based on SPACEFISH_GIT_STATUS_SHOW ([#155](#155)) ([1d34eb9](1d34eb9))
@matchai
Copy link
Owner

matchai commented Feb 14, 2019

🎉 This PR is included in version 2.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants