Skip to content

Commit

Permalink
Merge branch 'mp/complete-paths'
Browse files Browse the repository at this point in the history
* mp/complete-paths:
  git-completion.zsh: define __gitcomp_file compatibility function
  • Loading branch information
Junio C Hamano committed Mar 7, 2013
2 parents e53e8dd + 926eb7b commit c5443b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/completion/git-completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ __gitcomp_nl ()
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
}

__gitcomp_file ()
{
emulate -L zsh

local IFS=$'\n'
compset -P '*[=:]'
compadd -Q -p "${2-}" -f -- ${=1} && _ret=0
}

_git ()
{
local _ret=1
Expand Down

0 comments on commit c5443b2

Please sign in to comment.