mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-18 13:01:05 +02:00
unposted: Completion/Unix/Command/_git: Fix bug in git-add completion that
prevented -f option from being used correctly.
This commit is contained in:
parent
e3c1917345
commit
d37eda52f3
2 changed files with 5 additions and 2 deletions
|
@ -6,6 +6,9 @@
|
|||
* unposted: Completion/Unix/Command/_git: Move _gitk and _tig to
|
||||
correct location.
|
||||
|
||||
* unposted: Completion/Unix/Command/_git: Fix bug in git-add completion
|
||||
that prevented -f option from being used correctly.
|
||||
|
||||
2011-07-19 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 29555: Src/exec.c: fix problem that shell failed to use file
|
||||
|
@ -15128,5 +15131,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5400 $
|
||||
* $Revision: 1.5401 $
|
||||
*****************************************************
|
||||
|
|
|
@ -63,7 +63,7 @@ _git-add () {
|
|||
(file)
|
||||
# TODO: Use __git_ignore_line_inside_arguments.
|
||||
declare -a ignored_files_alternatives
|
||||
if [[ -n ${line[(I)-f|--force]} ]]; then
|
||||
if [[ -n ${opt_args[(I)-f|--force]} ]]; then
|
||||
ignored_files_alternatives=(
|
||||
'ignored-modified-files:ignored modified files:__git_modified_files --ignored'
|
||||
'ignored-other-files:ignored other files:__git_other_files --ignored')
|
||||
|
|
Loading…
Reference in a new issue