Skip to content

Commit 2bf536d

Browse files
committed
refactor: COMP_CVS_REMOTE to BASH_COMPLETION_CMD_CVS_REMOTE
The old name still serves as the (undocumented) fallback.
1 parent 02c60fa commit 2bf536d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

completions/cvs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ _cvs()
248248
esac
249249

250250
if [[ $cur != -* ]]; then
251-
# if $COMP_CVS_REMOTE is not null, 'cvs commit' will
252-
# complete on remotely checked-out files (requires
251+
# if $BASH_COMPLETION_CMD_CVS_REMOTE is not null, 'cvs commit'
252+
# will complete on remotely checked-out files (requires
253253
# passwordless access to the remote repository
254-
if [[ -n ${COMP_CVS_REMOTE:-} ]]; then
254+
if [[ -n ${BASH_COMPLETION_CMD_CVS_REMOTE-${COMP_CVS_REMOTE-}} ]]; then
255255
# this is the least computationally intensive way found so
256256
# far, but other changes (something other than
257257
# changed/removed/new) may be missing

doc/bash_completion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
data. If unset or null (default), `configure` completion will strip
3030
everything after the '=' when returning completions.
3131

32-
*COMP_CVS_REMOTE*::
32+
*BASH_COMPLETION_CMD_CVS_REMOTE*::
3333
If set and not null, `cvs commit` completion will try to complete on
3434
remotely checked-out files. This requires passwordless access to the
3535
remote repository. Default is unset.

test/config/bashrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export XDG_DATA_DIRS=/var/empty
4646
# Make sure default settings are in effect
4747
unset -v \
4848
BASH_COMPLETION_CMD_CONFIGURE_HINTS \
49+
BASH_COMPLETION_CMD_CVS_REMOTE \
4950
BASH_COMPLETION_CMD_IWCONFIG_SCAN \
5051
BASH_COMPLETION_FILEDIR_FALLBACK \
5152
COMP_CONFIGURE_HINTS \

0 commit comments

Comments
 (0)