We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b3120d + 6c44b64 commit 304d8b6Copy full SHA for 304d8b6
contrib/completion/git-completion.bash
@@ -84,8 +84,8 @@ __git_ps1 ()
84
{
85
local g="$(__gitdir)"
86
if [ -n "$g" ]; then
87
- local r
88
- local b
+ local r=""
+ local b=""
89
if [ -f "$g/rebase-merge/interactive" ]; then
90
r="|REBASE-i"
91
b="$(cat "$g/rebase-merge/head-name")"
@@ -127,11 +127,11 @@ __git_ps1 ()
127
}
128
fi
129
130
- local w
131
- local i
132
- local s
133
- local u
134
- local c
+ local w=""
+ local i=""
+ local s=""
+ local u=""
+ local c=""
135
136
if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then
137
if [ "true" = "$(git rev-parse --is-bare-repository 2>/dev/null)" ]; then
0 commit comments