threads / discuss / 53728

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

Subject: Change `option` in `__git_ps1_show_upstream` to a local variable

## tl;dr

One message between Jun 21, 2020 and Jun 21, 2020.

replies: 0people: 1as markdown or json

Black Lamb· Jun 21, 2020, 20:51 UTC · lore

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

← back to recent threads