Lines 2612-2623
__git_main ()
Link Here
|
2612 |
return |
2612 |
return |
2613 |
fi |
2613 |
fi |
2614 |
|
2614 |
|
|
|
2615 |
local completion_dir="$(dirname ${BASH_SOURCE[0]})" |
2616 |
|
2617 |
local completion_file="$completion_dir/git-$command" |
2618 |
[ -f "$completion_file" -a -r "$completion_file" ] && . "$completion_file" |
2619 |
|
2615 |
local completion_func="_git_${command//-/_}" |
2620 |
local completion_func="_git_${command//-/_}" |
2616 |
declare -f $completion_func >/dev/null && $completion_func && return |
2621 |
declare -f $completion_func >/dev/null && $completion_func && return |
2617 |
|
2622 |
|
2618 |
local expansion=$(__git_aliased_command "$command") |
2623 |
local expansion=$(__git_aliased_command "$command") |
2619 |
if [ -n "$expansion" ]; then |
2624 |
if [ -n "$expansion" ]; then |
2620 |
words[1]=$expansion |
2625 |
words[1]=$expansion |
|
|
2626 |
|
2627 |
completion_file="$completion_dir/git-$expansion" |
2628 |
[ -f "$completion_file" -a -r "$completion_file" ] && |
2629 |
. "$completion_file" |
2630 |
|
2621 |
completion_func="_git_${expansion//-/_}" |
2631 |
completion_func="_git_${expansion//-/_}" |
2622 |
declare -f $completion_func >/dev/null && $completion_func |
2632 |
declare -f $completion_func >/dev/null && $completion_func |
2623 |
fi |
2633 |
fi |