# Bash-completion missing option merge-base

2 messages from 2020-01-17 to 2020-01-17. Participants: Ondrej Pohorelsky, Johannes Schindelin.
Thread: https://gitlist.dev/t/52657

## Ondrej Pohorelsky, 2020-01-17 13:29

Subject: Bash-completion missing option merge-base
Message-ID: <CA+B51BERnCMJMK5dgo6+=22yr8Upv6RbKPh-Br6fALubVN-D9A@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BB51BERnCMJMK5dgo6%2B%3D22yr8Upv6RbKPh-Br6fALubVN-D9A%40mail.gmail.com

```
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, 2020-01-17 13:42

Subject: Re: Bash-completion missing option merge-base
Message-ID: <nycvar.QRO.7.76.6.2001171439290.46@tvgsbejvaqbjf.bet>
URL: https://gitlist.dev/e/nycvar.QRO.7.76.6.2001171439290.46%40tvgsbejvaqbjf.bet
In-Reply-To: <CA+B51BERnCMJMK5dgo6+=22yr8Upv6RbKPh-Br6fALubVN-D9A@mail.gmail.com>

```
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

```
