git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5/8] bash: Classify more commends out of completion.
@ 2007-02-04  7:38 Shawn O. Pearce
  2007-02-04  8:11 ` Junio C Hamano
  2007-02-04 10:33 ` Jakub Narebski
  0 siblings, 2 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2007-02-04  7:38 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Most of these commands are not ones you want to invoke from the
command line on a frequent basis, or have been renamed in 1.5.0 to
more friendly versions, but the old names are being left behind to
support existing scripts in the wild.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 contrib/completion/git-completion.bash |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1cf576e..382c817 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -250,16 +250,24 @@ __git_commands ()
 	do
 		case $i in
 		add--interactive) : plumbing;;
+		applymbox)        : ask gittus;;
+		applypatch)       : ask gittus;;
+		archimport)       : import;;
 		cat-file)         : plumbing;;
 		check-ref-format) : plumbing;;
 		commit-tree)      : plumbing;;
 		convert-objects)  : plumbing;;
+		cvsexportcommit)  : export;;
+		cvsimport)        : import;;
 		cvsserver)        : daemon;;
 		daemon)           : daemon;;
+		fsck-objects)     : plumbing;;
 		fetch-pack)       : plumbing;;
+		fmt-merge-msg)    : plumbing;;
 		hash-object)      : plumbing;;
 		http-*)           : transport;;
 		index-pack)       : plumbing;;
+		init-db)          : deprecated;;
 		local-fetch)      : plumbing;;
 		mailinfo)         : plumbing;;
 		mailsplit)        : plumbing;;
@@ -272,9 +280,13 @@ __git_commands ()
 		parse-remote)     : plumbing;;
 		patch-id)         : plumbing;;
 		peek-remote)      : plumbing;;
+		prune)            : plumbing;;
+		prune-packed)     : plumbing;;
+		quiltimport)      : import;;
 		read-tree)        : plumbing;;
 		receive-pack)     : plumbing;;
 		reflog)           : plumbing;;
+		repo-config)      : plumbing;;
 		rerere)           : plumbing;;
 		rev-list)         : plumbing;;
 		rev-parse)        : plumbing;;
@@ -285,14 +297,19 @@ __git_commands ()
 		show-index)       : plumbing;;
 		ssh-*)            : transport;;
 		stripspace)       : plumbing;;
+		svn)              : import export;;
+		svnimport)        : import;;
 		symbolic-ref)     : plumbing;;
+		tar-tree)         : deprecated;;
 		unpack-file)      : plumbing;;
 		unpack-objects)   : plumbing;;
+		update-index)     : plumbing;;
 		update-ref)       : plumbing;;
 		update-server-info) : daemon;;
 		upload-archive)   : plumbing;;
 		upload-pack)      : plumbing;;
 		write-tree)       : plumbing;;
+		verify-tag)       : plumbing;;
 		*) echo $i;;
 		esac
 	done
@@ -834,7 +851,6 @@ _git ()
 	pull)        _git_pull ;;
 	push)        _git_push ;;
 	rebase)      _git_rebase ;;
-	repo-config) _git_config ;;
 	reset)       _git_reset ;;
 	show)        _git_show ;;
 	show-branch) _git_log ;;
-- 
1.5.0.rc3.22.g5057

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 5/8] bash: Classify more commends out of completion.
  2007-02-04  7:38 [PATCH 5/8] bash: Classify more commends out of completion Shawn O. Pearce
@ 2007-02-04  8:11 ` Junio C Hamano
  2007-02-04  8:16   ` Shawn O. Pearce
  2007-02-04 10:33 ` Jakub Narebski
  1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-02-04  8:11 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

At some point we might want to generate this part from the table
defined in Documentation/cmd-list.perl (the latter might need to
be extended for that, but I think matching "helper", "plumbing"
and perhaps "foreign" would cover most of them).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 5/8] bash: Classify more commends out of completion.
  2007-02-04  8:11 ` Junio C Hamano
@ 2007-02-04  8:16   ` Shawn O. Pearce
  0 siblings, 0 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2007-02-04  8:16 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Junio C Hamano <junkio@cox.net> wrote:
> At some point we might want to generate this part from the table
> defined in Documentation/cmd-list.perl (the latter might need to
> be extended for that, but I think matching "helper", "plumbing"
> and perhaps "foreign" would cover most of them).

Actually I'm thinking of going in the other direction.  The set of
commands which we expect people to use in an interactive setting
on the command line is smaller than the set of commands we actually
ship.

But yea, maybe we can build it from the existing sources...

-- 
Shawn.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 5/8] bash: Classify more commends out of completion.
  2007-02-04  7:38 [PATCH 5/8] bash: Classify more commends out of completion Shawn O. Pearce
  2007-02-04  8:11 ` Junio C Hamano
@ 2007-02-04 10:33 ` Jakub Narebski
  2007-02-05  2:37   ` Shawn O. Pearce
  1 sibling, 1 reply; 5+ messages in thread
From: Jakub Narebski @ 2007-02-04 10:33 UTC (permalink / raw)
  To: git

Shawn O. Pearce wrote:

[cut]

Sidenote: do you have git-config and git-init as commands to use?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 5/8] bash: Classify more commends out of completion.
  2007-02-04 10:33 ` Jakub Narebski
@ 2007-02-05  2:37   ` Shawn O. Pearce
  0 siblings, 0 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2007-02-05  2:37 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: git

Jakub Narebski <jnareb@gmail.com> wrote:
> Shawn O. Pearce wrote:
> 
> [cut]
> 
> Sidenote: do you have git-config and git-init as commands to use?

Yes.  init and config are not in that table, which means they will
be offered as possible completions.  The table defaults to include
every command, I filter out stuff which people aren't expected to
be running (frequently) from an interactive shell.  Err on the side
of caution...

But not only is config in the table, we support completion on
lots of the arguments, e.g. `git config branch.ma<tab>.re<tab>`
(for branch.master.remote).

-- 
Shawn.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-05  2:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-04  7:38 [PATCH 5/8] bash: Classify more commends out of completion Shawn O. Pearce
2007-02-04  8:11 ` Junio C Hamano
2007-02-04  8:16   ` Shawn O. Pearce
2007-02-04 10:33 ` Jakub Narebski
2007-02-05  2:37   ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).