Re: [PATCH v3 4/6] git.c: implement --list-cmds=porcelain
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 24, 2018, 16:17 UTC
- Message-ID
- <CACsJy8DWcofCqg=QKo2pLcLQ91GKohnS71Wns8siVZ_sufjgUA@mail.gmail.com>
- In-Reply-To
- <CACsJy8B0bFzh5h+QE+NMgCHfoShfu8MvCzmxPPCVi-g_Ud3sUw@mail.gmail.com>
On Tue, Apr 24, 2018 at 6:12 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 6 quoted lines
> git-completion.bash will be updated to ask git "give me the commands > in the mainporcelain, completable or external category". This also > addresses another thing that bugs me: I wanted an option to let me > complete all commands instead of just porcelain. This approach kinda > generalizes that and it would be easy to let the user choose what > category they want to complete.
To complete this: there could also be yet another special category "custom", where --list-cmds=custom simply returns a list of commands specified in config file. With this the user can pick the "custom" category to have total control of what command shows up at "git <tab>" if they are not satisfied with the predefined categories.
-- Duy