# Change `option` in `__git_ps1_show_upstream` to a local variable

1 messages from 2020-06-21 to 2020-06-21. Participants: Black Lamb.
Thread: https://gitlist.dev/t/53728

## Black Lamb, 2020-06-21 20:51

Subject: Change `option` in `__git_ps1_show_upstream` to a local variable
Message-ID: <3fe48de84e2803cbd6c28ba0104230a70ec50087.camel@gmail.com>
URL: https://gitlist.dev/e/3fe48de84e2803cbd6c28ba0104230a70ec50087.camel%40gmail.com

```
The `option` variable in the `__git_ps1_show_upstream` function in
`contrib/completion/git-prompt.sh` [1] is not a local variable. Can it
be changed to a local variable like the other variables in
`__git_ps1_show_upstream`?

[1] 
https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh#L131


```
