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

Re: [PATCH] Update bash completion to ignore some more plumbing commands

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 21, 2007, 06:12 UTC
Message-ID
<20070521061228.GJ3141@spearce.org>
In-Reply-To
<20070519213521.GA32221@diku.dk>
Jonas Fonseca <fonseca@diku.dk> wrote:
> Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
> ---
>  contrib/completion/git-completion.bash |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
OK, sorry this missed 1.5.2.  I've applied it into my fastimport
master branch, I guess it will be in the next 1.5.2 based release.
;-)
 
>  I am not sure if it is OK to exclude checkout-index as it is
>  the only method of exporting the source as a directory. Also,

It might make sense to exclude checkout-index as plumbing, but I use it myself so often (and tab complete it too) that I want to keep it in. So I deleted that one line out of your patch when I applied it.

>  I don't understand why git-diff-* is not excluded.

Because I personally also use git diff-tree a lot. The others (diff-files, diff-index) I *never* use directly so I'm thinking maybe they should get flagged as plumbing and get removed from the completion.

-- 
Shawn.
Previous: Jonas FonsecaNext: Jonas Fonseca
Message 2 of 3 in “Update bash completion to ignore some more plumbing commands”
  1. Update bash completion to ignore some more plumbing commandsJonas Fonseca, May 19, 2007
  2. Shawn O. PearceMay 21, 2007
  3. Jonas FonsecaMay 22, 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.