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

Re: [PATCH] Contributed bash completion support for core Git tools.

From
Junio C Hamano <junkio@cox.net>
Date
Sep 18, 2006, 01:03 UTC
Message-ID
<7vodtex9xm.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060918004831.GA19851@spearce.org>
Shawn Pearce <spearce@spearce.org> writes:
Show 10 quoted lines
> Since these are completion routines only for tools shipped with
> core Git and since bash is a popular shell on many of the native
> core Git platforms (Linux, Mac OS X, Solaris, BSD) including these
> routines as part of the stock package would probably be convienent
> for many users.
>
> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
>
>  contrib/bash-git-completion.sh |  330 +++++++++++++++...
>  1 files changed, 330 insertions(+), 0 deletions(-)

Hmph. I tried this and found that I like "git pull ." completion quite a bit. Having said that:

 * If many people like it (like me), this may deserve to be
   outside contrib/
 * Otherwise, it would probably be better to place it in either
   contrib/bash/git-completion.sh (with potentially other
   bash-related things not just completion, but I do not know
   offhand what other kind of hooks would be useful) or
   contrib/completion/git-completion.bash (possibly with
   completion for other shells).
Previous: Shawn PearceNext: Shawn Pearce
Message 2 of 11 in “Contributed bash completion support for core Git tools.”
  1. Contributed bash completion support for core Git tools.Shawn Pearce, Sep 18, 2006
  2. Junio C HamanoSep 18, 2006
  3. Shawn PearceSep 18, 2006
  4. Junio C HamanoSep 28, 2006
  5. Shawn PearceSep 28, 2006
  6. Johannes SchindelinSep 18, 2006
  7. Shawn PearceSep 18, 2006
  8. Junio C HamanoSep 18, 2006
  9. Shawn PearceSep 18, 2006
  10. Sebastian HarlSep 18, 2006
  11. Shawn PearceSep 18, 2006

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.