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

Re: git-browse-help?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 15, 2007, 22:25 UTC
Message-ID
<20071215222518.GL14735@spearce.org>
In-Reply-To
<20071215111154.GB3447@coredump.intra.peff.net>
Jeff King <peff@peff.net> wrote:
Show 9 quoted lines
> -- >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 <peff@peff.net>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Show 21 quoted lines
> 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.
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “git-browse-help?”
  1. Jeff KingDec 14, 2007
  2. Junio C HamanoDec 14, 2007
  3. Jeff KingDec 15, 2007
  4. Jeff KingDec 15, 2007
  5. Jeff KingDec 15, 2007
  6. Junio C HamanoDec 15, 2007
  7. Shawn O. PearceDec 15, 2007
  8. Junio C HamanoDec 15, 2007
  9. Jeff KingDec 16, 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.