now/zsh — Issue #1: _git-add — «ignored other files» show up even without -f
Author: arefiev
Created: 2012-02-08 11:20:28+00:00
State: open

I believe that line 56 in zsh/Completion/Unix/Command/_git (in _git-add) should read

if [[ -n ${opt_args[(I)-f|--force]} ]]; then

instead of

if [[ -n ${line[(I)-f|--force]} ]]; then

Replacing line with opt_args yields the intended behavior (no «ignored other files» unless -f was specified).