author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 4 Feb 2007 07:38:43 +0000 (02:38 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Feb 2007 08:18:41 +0000 (00:18 -0800) | ||
commit | b3391775e87bed073b93a0a534169a794eceebd7 | |
tree | b090947633d68a97798060ed84532f9937f90245 | tree | snapshot |
parent | 78d4d6a2815f20607336fcb238ba23efc00e1b0a | commit | diff |
bash: Support unique completion when possible.
Because our use of -o nospace prevents bash from adding a trailing space
when a completion is unique and has been fully completed, we need to
perform this addition on our own. This (large) change converts all
existing uses of compgen to our wrapper __gitcomp which attempts to
handle this by tacking a trailing space onto the end of each offered
option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Because our use of -o nospace prevents bash from adding a trailing space
when a completion is unique and has been fully completed, we need to
perform this addition on our own. This (large) change converts all
existing uses of compgen to our wrapper __gitcomp which attempts to
handle this by tacking a trailing space onto the end of each offered
option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/completion/git-completion.bash | diff | blob | history |