Skip to content

Commit

Permalink
Merge branch 'js/completion-ctags-pattern-substitution-fix'
Browse files Browse the repository at this point in the history
The code that reads from the ctags file in the completion script
(in contrib/) did not spell ${param/pattern/string} substitution
correctly, which happened to work with bash but not with zsh.

* js/completion-ctags-pattern-substitution-fix:
  contrib/completion: escape the forward slash in __git_match_ctag
  • Loading branch information
Junio C Hamano committed Mar 23, 2015
2 parents 61ca378 + db8d750 commit c267a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ _git_gitk ()
}

__git_match_ctag() {
awk "/^${1////\\/}/ { print \$1 }" "$2"
awk "/^${1//\//\\/}/ { print \$1 }" "$2"
}

_git_grep ()
Expand Down

0 comments on commit c267a4d

Please sign in to comment.