threads / discuss / 52657

Bash-completion missing option merge-base

Subject: Bash-completion missing option merge-base

## tl;dr

2 messages between Jan 17, 2020 and Jan 17, 2020.

replies: 1people: 2as markdown or json

Ondrej Pohorelsky· Jan 17, 2020, 13:29 UTC · lore
Hi,

I'm a new maintainer of git in RHEL. We have encountered a bug where merge-base is missing in bash completion. [1]

First I applied a patch[2], that should fix this problem, into git-1.8.3.1 we are using in RHEL 7.7 and I discovered that completion is still missing.

Then I tried to reproduce this bug in the newest version of git and completion is still missing.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1288506 [2] https://marc.info/?l=git&m=138945079300929&w=4

Best regards, Ondřej Pohořelský

Johannes Schindelin· Jan 17, 2020, 13:42 UTC · re: Ondrej Pohorelsky · lore

Re: Bash-completion missing option merge-base

Hi Ondřej,
On Fri, 17 Jan 2020, Ondrej Pohorelsky wrote:
> We have encountered a bug where merge-base is missing in bash
> completion. [1]

The `merge-base` command is not considered a user-facing command: https://github.com/git/git/blob/v2.25.0/command-list.txt#L120 (the "plumbing" in "plumbinginterrogators" means that this is supposed to be a low-level command, to be used in scripts, but not so much interactively).

Therefore I think that it is intentional that this command does not tab-complete: to declutter the list when typing git<TAB><TAB>.

Ciao, Johannes

← back to recent threads