Subject: Re: [PATCH 2/2] completion: add docs on how to add subcommand completions

From: Junio C Hamano <[email-masked]>
Date: Wed, 24 Apr 2024 14:36:27 -0700

Roland Hieber <[email-masked]> writes:

> +# To add completion for git subcommands that live in external scripts,
> +# define a function of the form '_git_${subcommand}' while replacing all dashes
> +# with underscores, and the main git completion will make use of it.
> +# For example, to add completeion after 'git do-my-stuff' (which could e.g. live
> +# in /usr/bin/git-do-stuff), name the completion function '_git_do_stuff'.

You have either an extra "-my", or two "-my"s missing, in the above.

> +# See _git_show, _git_bisect etc. below for more examples.
> +#
>  # Compatible with bash 3.2.57.
>  #
>  # You can set the following environment variables to influence the behavior of