On Wed, Apr 24, 2024 at 02:36:27PM -0700, Junio C Hamano wrote: > Roland Hieber <rhi@xxxxxxxxxxxxxx> 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. Ah, and I deleted one '-my' in the line before sending it… Will send a v2. - Roland > > > +# 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 > -- Roland Hieber, Pengutronix e.K. | r.hieber@xxxxxxxxxxxxxx | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |