git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Johannes GilgerNext: Pierre Habouzit
Message 9 of 13 in “UI and git-completion.sh”
  1. Paolo CiarrocchiOct 23, 2007
  2. Steven GrimmOct 23, 2007
  3. Randal L. SchwartzOct 23, 2007
  4. Matthieu MoyOct 23, 2007
  5. Randal L. SchwartzOct 24, 2007
  6. Matthieu MoyOct 24, 2007
  7. Randal L. SchwartzOct 24, 2007
  8. Johannes GilgerOct 24, 2007
  9. Johannes SchindelinOct 24, 2007
  10. Pierre HabouzitOct 24, 2007
  11. Randal L. SchwartzOct 24, 2007
  12. Brian DowningOct 24, 2007
  13. Brian DowningOct 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.