diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index d5ced53d0..7987e8293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-20 Torstein Hegge <hegge@resisty.net> + + * 31159: Completion/Unix/Command/_git: git: Pass prefix filter to + ls-files even if it matches no files + 2013-04-20 Jun T <takimoto-j@kba.biglobe.ne.jp> * 31281: Completion/Unix/Command/_du: _du: add support for Mac OS diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 32d139acb..a76877180 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5345,7 +5345,7 @@ __git_files () { # TODO: --directory should probably be added to $opts when --others is given. local pref=$gitcdup$gitprefix$PREFIX - files=(${(0)"$(_call_program files git ls-files -z --exclude-standard $opts -- ${pref:+$pref\*} 2>/dev/null)"}) + files=(${(0)"$(_call_program files git ls-files -z --exclude-standard $opts -- ${pref:+$pref\\\*} 2>/dev/null)"}) __git_command_successful $pipestatus || return # _wanted $tag expl $description _files -g '{'${(j:,:)files}'}' $compadd_opts - |