Re: If you would write git from scratch now, what would you change?
Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Wincent Colaiuta <win@wincent.com> writes:
> >
> > $ git-<tab>
> > Display all 146 possibilities? (y or n)
>
> The tab completion for bash and zsh would also help you here, but I see
> there are quite a few commands that should not be there, and it's time
> to clean it up.
Show 20 quoted lines
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index cad842a..1bba68b 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -359,6 +359,15 @@ __git_commands ()
> upload-pack) : plumbing;;
> write-tree) : plumbing;;
> verify-tag) : plumbing;;
> + annotate) : use blame;;
> + checkout-index) : plumbing;;
> + diff-stages) : plumbing;;
> + get-tar-commit-id) : plumbing;;
> + lost-found) : deprecated;;
> + rebase--interactive) : plumbing;;
> + relink) : obsolete;;
> + whatchanged) : plumbing;;
> + verify-pack) : plumbing;;
> *) echo $i;;
> esac
> done
Ack'd-by: Shawn O. Pearce <spearce@spearce.org>
;-)
--
Shawn.