diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2024-04-01 19:07:51 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-01 12:38:23 -0700 |
| commit | d7805bc74351e61126e587a7470e3fbf843caf8a (patch) | |
| tree | 559b09ba04a9786ab121c63392e5dde9da29c878 /git.c | |
| parent | completion: fix prompt with unset SHOWCONFLICTSTATE in nounset mode (diff) | |
| download | git-d7805bc74351e61126e587a7470e3fbf843caf8a.tar.gz git-d7805bc74351e61126e587a7470e3fbf843caf8a.zip | |
completion: protect prompt against unset SHOWUPSTREAM in nounset mode
As it stands, the only call site of `__git_ps1_show_upstream` checks
that the `GIT_PS1_SHOWUPSTREAM` variable is set, so this is effectively
a no-op. However, that might change, and chances of noticing the
unprotected use might not be that high when it does.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions
