Add support for git-* command auto-completion by soraxas · Pull Request #7075 · fish-shell/fish-shell
Hmm indeed, those ones that are generated from man page.
So I just checked and in fact, since those git-* man page has no associated executable, the code would reject them with the
not command -q $cmd and continue
guard. (e.g. even though there are bunch of things like git-pull.fish and git-send-email.fish completion files in $XDG_DATA_HOME/generated_completions/, since there are no associated executable (e.g. no such git-pull standalone command exists), the command -q git-pull would fails.
Having said that, I'm not sure how useful those auto-generated completions are for custom git-* command (um probably?). If we want to save reductant check of command -q within generated_completions we can probably skip the auto-gen directory without much harm