Skip to content

Commit

Permalink
bash: Support unique completion when possible.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Feb 4, 2007
1 parent 78d4d6a commit b339177
Showing 1 changed file with 91 additions and 99 deletions.
Loading

0 comments on commit b339177

Please sign in to comment.