Re: UI and git-completion.sh
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 24, 2007, 10:20 UTC
- Message-ID
- <Pine.LNX.4.64.0710241113190.25221@racer.site>
- In-Reply-To
- <20071023234617.45a4fc64@paolo-desktop>
Hi,
On Tue, 23 Oct 2007, Paolo Ciarrocchi wrote:
Show 26 quoted lines
> Using the git-completation script it all boils down to 48 commands. > > paolo@paolo-desktop:~/git$ git > add fetch rebase > am filter-branch rebase--interactive > annotate format-patch relink > apply fsck remote > archive gc repack > bisect get-tar-commit-id request-pull > blame grep reset > branch gui resolve > bundle imap-send revert > checkout init rm > checkout-index instaweb send-email > cherry log shortlog > cherry-pick lost-found show > citool ls-files show-branch > clean ls-remote show-ref > clone ls-tree stash > commit merge status > config mergetool submodule > convert-objects mv tag > count-objects name-rev var > describe pickaxe verify-pack > diff pull whatchanged > diff-stages push
diff-stages just struck my eye. It is no longer in git... But AFAICS it is no longer in git-completion.bash either.
Besides, I think that the number of commands could be reduced further. For example, I think that a regular user does not want to see
checkout-index, citool, convert-objects, filter-branch, get-tar-commit-id, imap-send, instaweb, lost-found, ls-tree, name-rev, rebase--interactive, relink, repack, request-pull, show-ref, var, verify-pack and whatchanged.
This list was not vs the quoted list, but my current list (pretty much tip of Shawn's "next".
Note: I would like to complete the _options_ when one of these subcommands was specified, but I just do not want to see them when entering "git<SPACE><TAB>".
BTW Pierre's idea of generating many (if not all) of these completions on the fly (maybe with "--help-completion"?) is intriguing.
Ciao, Dscho