From: Shawn O. Pearce Date: Sat, 15 Dec 2007 22:25:18 GMT Subject: Re: git-browse-help? Message-ID: <20071215222518.GL14735@spearce.org> In-Reply-To: <20071215111154.GB3447@coredump.intra.peff.net> Jeff King wrote: > -- >8 -- > teach bash completion to treat commands with "--" as plumbing > > There is a convention that commands containing a double-dash > are implementation details and not to be used by mortals. We > should automatically remove them from the completion > suggestions as plumbing. > > Signed-off-by: Jeff King Acked-by: Shawn O. Pearce > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index 58e0e53..2fd32db 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -291,7 +291,7 @@ __git_commands () > for i in $(git help -a|egrep '^ ') > do > case $i in > - add--interactive) : plumbing;; > + *--*) : plumbing pattern;; > applymbox) : ask gittus;; > applypatch) : ask gittus;; > archimport) : import;; > @@ -308,7 +308,6 @@ __git_commands () > diff-tree) : plumbing;; > fast-import) : import;; > fsck-objects) : plumbing;; > - fetch--tool) : plumbing;; > fetch-pack) : plumbing;; > fmt-merge-msg) : plumbing;; > for-each-ref) : plumbing;; -- Shawn.