diff options
author | Denton Liu <liu.denton@gmail.com> | 2021-04-22 03:00:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-27 15:41:07 +0900 |
commit | 87e629756f3bbd5125237f504f12e394c576b26d (patch) | |
tree | a4a1a8f99024b7d06ac7e3196afe27ea1153c3ba /t/t4018/cpp-struct-single-line | |
parent | git-completion.bash: separate some commands onto their own line (diff) | |
download | tgif-87e629756f3bbd5125237f504f12e394c576b26d.tar.xz |
git-completion.bash: rename to $__git_cmd_idx
In e94fb44042 (git-completion.bash: pass $__git_subcommand_idx from
__git_main(), 2021-03-24), the $__git_subcommand_idx variable was
introduced. Naming it after the index of the subcommand is needlessly
confusing as, when this variable is used, it is in the completion
functions for commands (e.g. _git_remote()) where for `git remote add`,
the `remote` is referred to as the command and `add` is referred to as
the subcommand.
Rename this variable so that it's obvious it's about git commands. While
we're at it, shorten up its name so that it's still readable without
being a handful to type.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/cpp-struct-single-line')
0 files changed, 0 insertions, 0 deletions