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 b5d156c + 666ca59 commit 8e609b2Copy full SHA for 8e609b2
contrib/completion/git-completion.bash
@@ -225,13 +225,6 @@ _get_comp_words_by_ref ()
225
fi
226
227
228
-# Quotes the argument for shell reuse
229
-__git_quote()
230
-{
231
- local quoted=${1//\'/\'\\\'\'}
232
- printf "'%s'" "$quoted"
233
-}
234
-
235
# Generates completion reply with compgen, appending a space to possible
236
# completion words, if necessary.
237
# It accepts 1 to 4 arguments:
@@ -268,7 +261,7 @@ __gitcomp ()
268
261
__gitcomp_nl ()
269
262
{
270
263
local IFS=$'\n'
271
- COMPREPLY=($(compgen -P "${2-}" -S "${4- }" -W "$(__git_quote "$1")" -- "${3-$cur}"))
264
+ COMPREPLY=($(compgen -P "${2-}" -S "${4- }" -W "$1" -- "${3-$cur}"))
272
265
}
273
266
274
267
__git_heads ()
0 commit comments