git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
BLBlack Lamb <notaflyingpig@gmail.com>
Date
Jun 21, 2020, 20:51 UTC
Message-ID
<3fe48de84e2803cbd6c28ba0104230a70ec50087.camel@gmail.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

Message 1 of 1 in “Change `option` in `__git_ps1_show_upstream` to a local variable”
  1. Black LambJun 21, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.