oh my zsh - compdef git plugin - why _git needed

Viewed 247

Please see this line in the git.plugin.zsh file:

compdef _git gdv=git-diff

In the zsh user compdef tutorial, the compdef for referencing an existing command is explained like this:

compdef cmd1=cmd2

The obvious question: why is _git needed?

0 Answers
Related