How to prevent shell complete options for git commit-tree?

How to prevent shell complete options for git commit-tree?

When I'm completing git commit I would like it add a space at the end so I could enter the desired flags immediately. But, commit-tree is also an option, thus resulting in an annoying situation where I accidentally type: git commit-m 'my message'

How can I make the zsh completion ignore commit-tree?

EDIT: the completion is done by git-complete.

相关内容