Skip to content

Commit 657be69

Browse files
committed
refactor: rename { => _comp_}_included_ssh_config_files
1 parent 231952d commit 657be69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bash_completion

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,8 +2277,7 @@ _known_hosts()
22772277
# Helper function to locate ssh included files in configs
22782278
# This function looks for the "Include" keyword in ssh config files and
22792279
# includes them recursively, adding each result to the config variable.
2280-
# TODO:API: rename per conventions
2281-
_included_ssh_config_files()
2280+
_comp__included_ssh_config_files()
22822281
{
22832282
(($# < 1)) &&
22842283
echo "bash_completion: $FUNCNAME: missing mandatory argument CONFIG" >&2
@@ -2327,7 +2326,7 @@ _included_ssh_config_files()
23272326
fi
23282327
done
23292328
done
2330-
} # _included_ssh_config_files()
2329+
} # _comp__included_ssh_config_files()
23312330

23322331
# Helper function for completing _known_hosts.
23332332
# This function performs host completion based on ssh's config and known_hosts
@@ -2404,7 +2403,7 @@ _known_hosts_real()
24042403
# "Include" keyword in ssh config files
24052404
if ((${#config[@]} > 0)); then
24062405
for i in "${config[@]}"; do
2407-
_included_ssh_config_files "$i"
2406+
_comp__included_ssh_config_files "$i"
24082407
done
24092408
fi
24102409

bash_completion.d/000_bash_completion_compat.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ _comp_deprecate_func 2.12 _modules _comp_compgen_kernel_modules
2929
_comp_deprecate_func 2.12 _installed_modules _comp_compgen_inserted_kernel_modules
3030
_comp_deprecate_func 2.12 _usergroup _comp_compgen_usergroup
3131
_comp_deprecate_func 2.12 _complete_as_root _comp_as_root
32+
_comp_deprecate_func 2.12 _included_ssh_config_files _comp__included_ssh_config_files
3233

3334
# Backwards compatibility for compat completions that use have().
3435
# @deprecated 1.90 should no longer be used; generally not needed with

0 commit comments

Comments
 (0)