On Thu, Feb 8, 2018 at 9:03 AM, Andrzej <borucki_andr...@wp.pl> wrote:
> I have Linux Mint and its terminal besides usual completion (add file name
> when type first letter and press tab) also can complete git parameters. How
> is doing this? Bash knows git or bash has special interface to completion
> and git uses it?
> I want in my Linux program apply this mechanism.
Various shells include support for completion of git parameters. These
completion functions may be enabled by default in your distribution.
For example, zsh has vcs_info. There are also scripts included in
git (contrib/completion)  to do this.