#compdef git-rm _arguments -S -A '-*' \ '-f[override the up-to-date check]' \ "-n[don't actually remove the files, just show if they exist in the index]" \ '-r[allow recursive removal when a leading directory-name is given]' \ '--cached[only remove files from the index]' && ret=0 _files