Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1 contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,7 @@ __git_support_parseopt_helper () {
__git_complete_command () {
local command="$1"
local completion_func="_git_${command//-/_}"
[[ "$command" =~ [^a-z-] ]] && return 1
if ! declare -f $completion_func >/dev/null 2>/dev/null &&
declare -f _completion_loader >/dev/null 2>/dev/null
then
Expand Down
3 changes: 2 additions & 1 deletion 3 contrib/completion/git-completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ __git_zsh_bash_func ()
emulate -L ksh

local command=$1

local completion_func="_git_${command//-/_}"

[[ "$command" =~ [^a-z-] ]] && return
declare -f $completion_func >/dev/null && $completion_func && return

local expansion=$(__git_aliased_command "$command")
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.