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

UI and git-completion.sh

From
PCPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Date
Oct 23, 2007, 21:46 UTC
Message-ID
<20071023234617.45a4fc64@paolo-desktop>
Hi all,
I just asked for help on the #git irc channel in order to install
the .git-completion.sh script (thanks nessundorma) and after using it 
for a while I started wondering why I cannot find any reference to it the 
official documentation.
The only important think that git grep found is:
	paolo@paolo-desktop:~/git$ git grep completion *
	Documentation/RelNotes-1.5.0.txt: - Bash completion scripts have been updated heavily.
Shouldn't it be mentioned somewhere? 
I know that newbies are somehow scared by the following:
	paolo@paolo-desktop:~/git$ git-
	Display all 151 possibilities? (y or n)
What? Do I have to learn 151 commands?
No way!
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

And I think I can remove some commands from the list.

What people think about starting suggesting the usage of the script in the documentation? I just want to know the opinion of the list before trying to write a documentation patch. Next step would be to reduce the number of the items listed by git <tab> but I know there is already a discussion about it on the list.

Regards,
		Paolo
Next: Steven Grimm
Message 1 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.