git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git difftool does not give the --cached option

From
Stefan Beller <sbeller@google.com>
Date
Oct 9, 2018, 17:59 UTC
Message-ID
<CAGZ79kZCSen-jNE=XCzVds-gxFsnkK_nPoJw8sE00bXtTPf5+w@mail.gmail.com>
In-Reply-To
<CAHMHMxWutm=jWC2nLJCEEE4CZ-ERc79vvwrbo8VnfC0VGwei0Q@mail.gmail.com>
On Tue, Oct 9, 2018 at 7:33 AM Ντέντος Σταύρος <stdedos@gmail.com> wrote:
Show 22 quoted lines
>
> I have install the latest git version from the PPA:
> $ git --version
> git version 2.19.1
> $ lsb_release -rd
> Description: Ubuntu 16.04.5 LTS
> Release: 16.04
>
> However, trying to autocomplete git difftool --cached gives:
> $ env -i bash --rcfile /etc/profile
> $ . /usr/share/bash-completion/completions/git
> $ git difftool --
> --dir-diff          --extcmd=           --gui               --no-...
>          --no-prompt         --symlinks          --tool-help
> --tool=             --trust-exit-code
>
> Please direct me on what would require more attention.
> /usr/share/bash-completion/completions/git is the same as the
> git@master/contrib/completion/git-completion.bash and e.g. here:
> https://github.com/git/git/commit/6cc4bc15f92e85b41d9da9075905f20c6a9008fe#diff-f37c4f4a898819f0ca4b5ff69e81d4d9
>
> It seems that --cached exists.

and it seems that there are more options that are not completed, not just --cached. I don't know offhand where to look further, though.

>
> (Side question: What is the "--no-..." option shown? I cannot seem to
> find it anywhere in the documentation :/)

Answering the side question, see b221b5ab9b (completion: collapse extra --no-.. options, 2018-06-06) https://github.com/git/git/commit/b221b5ab9b92f3def37184db6e052ec87d7635b4

Previous: Ντέντος ΣταύροςNext: Ντέντος Σταύρος
Message 2 of 3 in “Fwd: git difftool does not give the --cached option”
  1. Ντέντος ΣταύροςOct 9, 2018
  2. Stefan BellerOct 9, 2018
  3. Ντέντος ΣταύροςJan 14, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.