threads / discuss / 50219

ls -files missing from git-completion-list

Subject: ls -files missing from git-completion-list

## tl;dr

3 messages between Jan 14, 2019 and Jan 14, 2019.

replies: 2people: 2as markdown or json

Ντέντος Σταύρος· Jan 14, 2019, 12:18 UTC · lore
I have install the latest git version from the PPA:
$ git --version
git version 2.20.1
$ lsb_release -rd
Description: Ubuntu 16.04.5 LTS
Release: 16.04

Running `https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L2898` does not give ls-files

$ git --list-cmds=list-mainporcelain,others,nohelpers,alias,list-complete,config
| grep ls
$
Ντέντος Σταύρος
Duy Nguyen· Jan 14, 2019, 13:36 UTC · re: Ντέντος Σταύρος · lore

Re: ls -files missing from git-completion-list

On Mon, Jan 14, 2019 at 7:19 PM Ντέντος Σταύρος <stdedos@gmail.com> wrote:
Show 13 quoted lines
>
> I have install the latest git version from the PPA:
> $ git --version
> git version 2.20.1
> $ lsb_release -rd
> Description: Ubuntu 16.04.5 LTS
> Release: 16.04
>
> Running `https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L2898`
> does not give ls-files
>
> $ git --list-cmds=list-mainporcelain,others,nohelpers,alias,list-complete,config
> | grep ls

This is expected. ls-files is a plumbing command and will not complete by default. You can however add it back by adjusting config variable completion.commands. See "git help config" for details.

> $
>
> Ντέντος Σταύρος
-- 
Duy
Ντέντος Σταύρος· Jan 14, 2019, 13:41 UTC · re: Duy Nguyen · lore

Re: ls -files missing from git-completion-list

Thank you for the resolution.

I didn't know it was a plumbing command, hence `--list-cmds=list-mainporcelain,others,nohelpers,alias,list-complete,config` didn't inspire me further

Apologies for the non-important topic.
Ntentos Stavros
On Mon, Jan 14, 2019 at 3:36 PM Duy Nguyen <pclouds@gmail.com> wrote:
Show 28 quoted lines
>
> On Mon, Jan 14, 2019 at 7:19 PM Ντέντος Σταύρος <stdedos@gmail.com> wrote:
> >
> > I have install the latest git version from the PPA:
> > $ git --version
> > git version 2.20.1
> > $ lsb_release -rd
> > Description: Ubuntu 16.04.5 LTS
> > Release: 16.04
> >
> > Running `https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L2898`
> > does not give ls-files
> >
> > $ git --list-cmds=list-mainporcelain,others,nohelpers,alias,list-complete,config
> > | grep ls
>
> This is expected. ls-files is a plumbing command and will not complete
> by default. You can however add it back by adjusting config variable
> completion.commands. See "git help config" for details.
>
> > $
> >
> > Ντέντος Σταύρος
>
>
>
> --
> Duy

← back to recent threads