aboutsummaryrefslogtreecommitdiffstats
path: root/git.c
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2024-04-01 11:30:33 +0000
committerJunio C Hamano <gitster@pobox.com>2024-04-01 08:31:54 -0700
commit758b4e137349b8548ada07346ab82e82079b43a3 (patch)
tree11d2efcc00d3bd961f04a9fb14c6fe19b8365236 /git.c
parentGit 2.44 (diff)
downloadgit-758b4e137349b8548ada07346ab82e82079b43a3.tar.gz
git-758b4e137349b8548ada07346ab82e82079b43a3.zip
completion: fix prompt with unset SHOWCONFLICTSTATE in nounset mode
`GIT_PS1_SHOWCONFLICTSTATE` is a user variable that might not be set, causing errors when the shell is in `nounset` mode. Take into account on access by falling back to an empty string. 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