author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 15 Dec 2010 04:57:58 +0000 (22:57 -0600) | ||
committer | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 15 Dec 2010 05:55:55 +0000 (23:55 -0600) | ||
commit | dbda3b10902e13826862505900eb7a537505a492 | |
tree | 1c16ade7d7ab7c9982cd29ce8147521e222854fe | tree | snapshot |
parent | da48616f1df51ff43acc64cdf8966f7b72142a11 | commit | diff |
bash: simple reimplementation of _get_comp_words_by_ref
Add a minimal implementation of _get_comp_words_by_ref so
$ git show head:g <tab><tab>
on bash 4 can complete paths within the head commit without requiring
the bash_completion functions to be loaded. This is a follow-up to
the previous patch (bash: get --pretty=m<tab> completion to work with
bash v4).
Based on bash-completion 2.x (commit bf763033, 2010-10-26) but tweaked
for simplicity and to allow zsh to parse the code.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Improved-by: SZEDER Gábor <szeder@ira.uka.de>
Add a minimal implementation of _get_comp_words_by_ref so
$ git show head:g <tab><tab>
on bash 4 can complete paths within the head commit without requiring
the bash_completion functions to be loaded. This is a follow-up to
the previous patch (bash: get --pretty=m<tab> completion to work with
bash v4).
Based on bash-completion 2.x (commit bf763033, 2010-10-26) but tweaked
for simplicity and to allow zsh to parse the code.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Improved-by: SZEDER Gábor <szeder@ira.uka.de>
contrib/completion/git-completion.bash | diff | blob | history |